<?xml version="1.0" encoding="ascii"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
  <title>spade.xmppd.xmppd</title>
  <link rel="stylesheet" href="epydoc.css" type="text/css" />
  <script type="text/javascript" src="epydoc.js"></script>
</head>

<body bgcolor="white" text="black" link="blue" vlink="#204080"
      alink="#204080">
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="spade-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://spade2.googlecode.com">SPADE</a></th>
          </tr></table></th>
  </tr>
</table>
<table width="100%" cellpadding="0" cellspacing="0">
  <tr valign="top">
    <td width="100%">
      <span class="breadcrumbs">
        <a href="spade-module.html">Package&nbsp;spade</a> ::
        <a href="spade.xmppd-module.html">Package&nbsp;xmppd</a> ::
        Module&nbsp;xmppd
      </span>
    </td>
    <td>
      <table cellpadding="0" cellspacing="0">
        <!-- hide/show private -->
        <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
    onclick="toggle_private();">hide&nbsp;private</a>]</span></td></tr>
        <tr><td align="right"><span class="options"
            >[<a href="frames.html" target="_top">frames</a
            >]&nbsp;|&nbsp;<a href="spade.xmppd.xmppd-pysrc.html"
            target="_top">no&nbsp;frames</a>]</span></td></tr>
      </table>
    </td>
  </tr>
</table>
<h1 class="epydoc">Source Code for <a href="spade.xmppd.xmppd-module.html">Module spade.xmppd.xmppd</a></h1>
<pre class="py-src">
<a name="L1"></a><tt class="py-lineno">   1</tt>  <tt class="py-line"><tt class="py-comment">#!/usr/bin/python</tt> </tt>
<a name="L2"></a><tt class="py-lineno">   2</tt>  <tt class="py-line"><tt class="py-comment"># -*- coding: UTF-8 -*-</tt> </tt>
<a name="L3"></a><tt class="py-lineno">   3</tt>  <tt class="py-line"> </tt>
<a name="L4"></a><tt class="py-lineno">   4</tt>  <tt class="py-line"><tt class="py-comment"># XMPPD :: eXtensible Messaging and Presence Protocol Daemon</tt> </tt>
<a name="L5"></a><tt class="py-lineno">   5</tt>  <tt class="py-line"> </tt>
<a name="L6"></a><tt class="py-lineno">   6</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (C) 2005 Kristopher Tate / BlueBridge Technologies Group, Inc.</tt> </tt>
<a name="L7"></a><tt class="py-lineno">   7</tt>  <tt class="py-line"><tt class="py-comment"># Copyright (C) 2004 Alexey Nezhdanov</tt> </tt>
<a name="L8"></a><tt class="py-lineno">   8</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L9"></a><tt class="py-lineno">   9</tt>  <tt class="py-line"><tt class="py-comment"># This program is free software; you can redistribute it and/or modify</tt> </tt>
<a name="L10"></a><tt class="py-lineno">  10</tt>  <tt class="py-line"><tt class="py-comment"># it under the terms of the GNU General Public License as published by</tt> </tt>
<a name="L11"></a><tt class="py-lineno">  11</tt>  <tt class="py-line"><tt class="py-comment"># the Free Software Foundation; either version 2 of the License, or</tt> </tt>
<a name="L12"></a><tt class="py-lineno">  12</tt>  <tt class="py-line"><tt class="py-comment"># (at your option) any later version.</tt> </tt>
<a name="L13"></a><tt class="py-lineno">  13</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L14"></a><tt class="py-lineno">  14</tt>  <tt class="py-line"><tt class="py-comment"># This program is distributed in the hope that it will be useful,</tt> </tt>
<a name="L15"></a><tt class="py-lineno">  15</tt>  <tt class="py-line"><tt class="py-comment"># but WITHOUT ANY WARRANTY; without even the implied warranty of</tt> </tt>
<a name="L16"></a><tt class="py-lineno">  16</tt>  <tt class="py-line"><tt class="py-comment"># MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the</tt> </tt>
<a name="L17"></a><tt class="py-lineno">  17</tt>  <tt class="py-line"><tt class="py-comment"># GNU General Public License for more details.</tt> </tt>
<a name="L18"></a><tt class="py-lineno">  18</tt>  <tt class="py-line"><tt class="py-comment">#</tt> </tt>
<a name="L19"></a><tt class="py-lineno">  19</tt>  <tt class="py-line"><tt class="py-comment"># You should have received a copy of the GNU General Public License</tt> </tt>
<a name="L20"></a><tt class="py-lineno">  20</tt>  <tt class="py-line"><tt class="py-comment"># along with this program; if not, write to the Free Software</tt> </tt>
<a name="L21"></a><tt class="py-lineno">  21</tt>  <tt class="py-line"><tt class="py-comment"># Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA</tt> </tt>
<a name="L22"></a><tt class="py-lineno">  22</tt>  <tt class="py-line"> </tt>
<a name="L23"></a><tt class="py-lineno">  23</tt>  <tt class="py-line"><tt class="py-docstring">"XMPPD :: eXtensible Messaging and Presence Protocol Daemon"</tt> </tt>
<a name="L24"></a><tt class="py-lineno">  24</tt>  <tt class="py-line"> </tt>
<a name="L25"></a><tt class="py-lineno">  25</tt>  <tt class="py-line"><tt class="py-name">__author__</tt>    <tt class="py-op">=</tt> <tt class="py-string">"Kristopher Tate &lt;kris@bbridgetech.com&gt;"</tt> </tt>
<a name="L26"></a><tt class="py-lineno">  26</tt>  <tt class="py-line"><tt id="link-0" class="py-name" targets="Variable spade.xmpp.session.__version__=spade.xmpp.session-module.html#__version__"><a title="spade.xmpp.session.__version__" class="py-name" href="#" onclick="return doclink('link-0', '__version__', 'link-0');">__version__</a></tt>   <tt class="py-op">=</tt> <tt class="py-string">"0.3-RC1"</tt> </tt>
<a name="L27"></a><tt class="py-lineno">  27</tt>  <tt class="py-line"><tt class="py-name">__copyright__</tt> <tt class="py-op">=</tt> <tt class="py-string">"Copyright (C) 2005 BlueBridge Technologies Group, Inc."</tt> </tt>
<a name="L28"></a><tt class="py-lineno">  28</tt>  <tt class="py-line"><tt class="py-name">__license__</tt>   <tt class="py-op">=</tt> <tt class="py-string">"GPL"</tt> </tt>
<a name="L29"></a><tt class="py-lineno">  29</tt>  <tt class="py-line"> </tt>
<a name="L30"></a><tt class="py-lineno">  30</tt>  <tt class="py-line"> </tt>
<a name="L31"></a><tt class="py-lineno">  31</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-1" class="py-name" targets="Package spade.xmpp=spade.xmpp-module.html"><a title="spade.xmpp" class="py-name" href="#" onclick="return doclink('link-1', 'xmpp', 'link-1');">xmpp</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L32"></a><tt class="py-lineno">  32</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt class="py-name">math</tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L33"></a><tt class="py-lineno">  33</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">traceback</tt> </tt>
<a name="L34"></a><tt class="py-lineno">  34</tt>  <tt class="py-line"> </tt>
<a name="L35"></a><tt class="py-lineno">  35</tt>  <tt class="py-line"><tt class="py-keyword">import</tt> <tt class="py-name">socket</tt><tt class="py-op">,</tt><tt class="py-name">select</tt><tt class="py-op">,</tt><tt class="py-name">random</tt><tt class="py-op">,</tt><tt class="py-name">os</tt><tt class="py-op">,</tt><tt class="py-name">sys</tt><tt class="py-op">,</tt><tt class="py-name">thread</tt><tt class="py-op">,</tt><tt class="py-name">errno</tt><tt class="py-op">,</tt><tt class="py-name">time</tt><tt class="py-op">,</tt><tt class="py-name">threading</tt><tt class="py-op">,</tt><tt class="py-name">hashlib</tt> </tt>
<a name="L36"></a><tt class="py-lineno">  36</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'DEFAULT_LANG'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'en'</tt> </tt>
<a name="L37"></a><tt class="py-lineno">  37</tt>  <tt class="py-line"><tt class="py-comment">#globals()['LANG_LIST'] = []</tt> </tt>
<a name="L38"></a><tt class="py-lineno">  38</tt>  <tt class="py-line"> </tt>
<a name="L39"></a><tt class="py-lineno">  39</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'SERVER_MOTD'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">"Hello, I'm Help Desk. Type 'menu' for help."</tt> </tt>
<a name="L40"></a><tt class="py-lineno">  40</tt>  <tt class="py-line"> </tt>
<a name="L41"></a><tt class="py-lineno">  41</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">5222</tt> <tt class="py-comment"># Default XMPP port for c2s</tt> </tt>
<a name="L42"></a><tt class="py-lineno">  42</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5223'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">5223</tt> <tt class="py-comment"># Default XMPP port for c2s (w/ TLS)</tt> </tt>
<a name="L43"></a><tt class="py-lineno">  43</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5269'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">5269</tt> <tt class="py-comment"># Default XMPP port for s2s</tt> </tt>
<a name="L44"></a><tt class="py-lineno">  44</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_8000'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">8001</tt> <tt class="py-comment"># Port to open for all XMLRPC requests</tt> </tt>
<a name="L45"></a><tt class="py-lineno">  45</tt>  <tt class="py-line"> </tt>
<a name="L46"></a><tt class="py-lineno">  46</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'MAXREQUESTLENGTH'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">10000</tt> <tt class="py-comment"># maximum allowed length of XML-RPC request (in bytes)</tt> </tt>
<a name="L47"></a><tt class="py-lineno">  47</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'XMPPD_MAX_CONNECTIONS'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-number">1</tt> <tt class="py-comment"># [SOCKER] Set maximum number of connections for this node.</tt> </tt>
<a name="L48"></a><tt class="py-lineno">  48</tt>  <tt class="py-line"> </tt>
<a name="L49"></a><tt class="py-lineno">  49</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'SOCKER_TGUID'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'BBTECH_XMPPD'</tt> <tt class="py-comment"># CHANGE THIS IF YOU ARE TO USE SOCKER!</tt> </tt>
<a name="L50"></a><tt class="py-lineno">  50</tt>  <tt class="py-line"> </tt>
<a name="L51"></a><tt class="py-lineno">  51</tt>  <tt class="py-line"> </tt>
<a name="L52"></a><tt class="py-lineno">  52</tt>  <tt class="py-line"><tt id="link-2" class="py-name" targets="Variable spade.xmppd.modules.stream.GLOBAL_TERMINATE=spade.xmppd.modules.stream-module.html#GLOBAL_TERMINATE,Variable spade.xmppd.xmppd.GLOBAL_TERMINATE=spade.xmppd.xmppd-module.html#GLOBAL_TERMINATE"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-2', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L53"></a><tt class="py-lineno">  53</tt>  <tt class="py-line"> </tt>
<a name="L54"></a><tt class="py-lineno">  54</tt>  <tt class="py-line"><tt class="py-string">"""</tt> </tt>
<a name="L55"></a><tt class="py-lineno">  55</tt>  <tt class="py-line"><tt class="py-string">_socket_state live/dead</tt> </tt>
<a name="L56"></a><tt class="py-lineno">  56</tt>  <tt class="py-line"><tt class="py-string">_session_state   no/in-process/yes</tt> </tt>
<a name="L57"></a><tt class="py-lineno">  57</tt>  <tt class="py-line"><tt class="py-string">_stream_state not-opened/opened/closing/closed</tt> </tt>
<a name="L58"></a><tt class="py-lineno">  58</tt>  <tt class="py-line"><tt class="py-string">"""</tt> </tt>
<a name="L59"></a><tt class="py-lineno">  59</tt>  <tt class="py-line"><tt class="py-comment"># Transport-level flags</tt> </tt>
<a name="L60"></a><tt class="py-lineno">  60</tt>  <tt class="py-line"><tt id="link-3" class="py-name" targets="Variable spade.xmpp.session.SOCKET_UNCONNECTED=spade.xmpp.session-module.html#SOCKET_UNCONNECTED,Variable spade.xmppd.modules.stream.SOCKET_UNCONNECTED=spade.xmppd.modules.stream-module.html#SOCKET_UNCONNECTED,Variable spade.xmppd.xmppd.SOCKET_UNCONNECTED=spade.xmppd.xmppd-module.html#SOCKET_UNCONNECTED"><a title="spade.xmpp.session.SOCKET_UNCONNECTED
spade.xmppd.modules.stream.SOCKET_UNCONNECTED
spade.xmppd.xmppd.SOCKET_UNCONNECTED" class="py-name" href="#" onclick="return doclink('link-3', 'SOCKET_UNCONNECTED', 'link-3');">SOCKET_UNCONNECTED</a></tt>  <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L61"></a><tt class="py-lineno">  61</tt>  <tt class="py-line"><tt id="link-4" class="py-name" targets="Variable spade.xmpp.session.SOCKET_ALIVE=spade.xmpp.session-module.html#SOCKET_ALIVE,Variable spade.xmppd.modules.stream.SOCKET_ALIVE=spade.xmppd.modules.stream-module.html#SOCKET_ALIVE,Variable spade.xmppd.xmppd.SOCKET_ALIVE=spade.xmppd.xmppd-module.html#SOCKET_ALIVE"><a title="spade.xmpp.session.SOCKET_ALIVE
spade.xmppd.modules.stream.SOCKET_ALIVE
spade.xmppd.xmppd.SOCKET_ALIVE" class="py-name" href="#" onclick="return doclink('link-4', 'SOCKET_ALIVE', 'link-4');">SOCKET_ALIVE</a></tt>        <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L62"></a><tt class="py-lineno">  62</tt>  <tt class="py-line"><tt id="link-5" class="py-name" targets="Variable spade.xmpp.session.SOCKET_DEAD=spade.xmpp.session-module.html#SOCKET_DEAD,Variable spade.xmppd.modules.stream.SOCKET_DEAD=spade.xmppd.modules.stream-module.html#SOCKET_DEAD,Variable spade.xmppd.xmppd.SOCKET_DEAD=spade.xmppd.xmppd-module.html#SOCKET_DEAD"><a title="spade.xmpp.session.SOCKET_DEAD
spade.xmppd.modules.stream.SOCKET_DEAD
spade.xmppd.xmppd.SOCKET_DEAD" class="py-name" href="#" onclick="return doclink('link-5', 'SOCKET_DEAD', 'link-5');">SOCKET_DEAD</a></tt>         <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L63"></a><tt class="py-lineno">  63</tt>  <tt class="py-line"><tt class="py-comment"># XML-level flags</tt> </tt>
<a name="L64"></a><tt class="py-lineno">  64</tt>  <tt class="py-line"><tt id="link-6" class="py-name" targets="Variable spade.xmpp.session.STREAM__NOT_OPENED=spade.xmpp.session-module.html#STREAM__NOT_OPENED,Variable spade.xmppd.modules.stream.STREAM__NOT_OPENED=spade.xmppd.modules.stream-module.html#STREAM__NOT_OPENED,Variable spade.xmppd.xmppd.STREAM__NOT_OPENED=spade.xmppd.xmppd-module.html#STREAM__NOT_OPENED"><a title="spade.xmpp.session.STREAM__NOT_OPENED
spade.xmppd.modules.stream.STREAM__NOT_OPENED
spade.xmppd.xmppd.STREAM__NOT_OPENED" class="py-name" href="#" onclick="return doclink('link-6', 'STREAM__NOT_OPENED', 'link-6');">STREAM__NOT_OPENED</a></tt>  <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L65"></a><tt class="py-lineno">  65</tt>  <tt class="py-line"><tt id="link-7" class="py-name" targets="Variable spade.xmpp.session.STREAM__OPENED=spade.xmpp.session-module.html#STREAM__OPENED,Variable spade.xmppd.modules.stream.STREAM__OPENED=spade.xmppd.modules.stream-module.html#STREAM__OPENED,Variable spade.xmppd.xmppd.STREAM__OPENED=spade.xmppd.xmppd-module.html#STREAM__OPENED"><a title="spade.xmpp.session.STREAM__OPENED
spade.xmppd.modules.stream.STREAM__OPENED
spade.xmppd.xmppd.STREAM__OPENED" class="py-name" href="#" onclick="return doclink('link-7', 'STREAM__OPENED', 'link-7');">STREAM__OPENED</a></tt>      <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L66"></a><tt class="py-lineno">  66</tt>  <tt class="py-line"><tt id="link-8" class="py-name" targets="Variable spade.xmpp.session.STREAM__CLOSING=spade.xmpp.session-module.html#STREAM__CLOSING,Variable spade.xmppd.modules.stream.STREAM__CLOSING=spade.xmppd.modules.stream-module.html#STREAM__CLOSING,Variable spade.xmppd.xmppd.STREAM__CLOSING=spade.xmppd.xmppd-module.html#STREAM__CLOSING"><a title="spade.xmpp.session.STREAM__CLOSING
spade.xmppd.modules.stream.STREAM__CLOSING
spade.xmppd.xmppd.STREAM__CLOSING" class="py-name" href="#" onclick="return doclink('link-8', 'STREAM__CLOSING', 'link-8');">STREAM__CLOSING</a></tt>     <tt class="py-op">=</tt> <tt class="py-number">3</tt> </tt>
<a name="L67"></a><tt class="py-lineno">  67</tt>  <tt class="py-line"><tt id="link-9" class="py-name" targets="Variable spade.xmpp.session.STREAM__CLOSED=spade.xmpp.session-module.html#STREAM__CLOSED,Variable spade.xmppd.modules.stream.STREAM__CLOSED=spade.xmppd.modules.stream-module.html#STREAM__CLOSED,Variable spade.xmppd.xmppd.STREAM__CLOSED=spade.xmppd.xmppd-module.html#STREAM__CLOSED"><a title="spade.xmpp.session.STREAM__CLOSED
spade.xmppd.modules.stream.STREAM__CLOSED
spade.xmppd.xmppd.STREAM__CLOSED" class="py-name" href="#" onclick="return doclink('link-9', 'STREAM__CLOSED', 'link-9');">STREAM__CLOSED</a></tt>      <tt class="py-op">=</tt> <tt class="py-number">4</tt> </tt>
<a name="L68"></a><tt class="py-lineno">  68</tt>  <tt class="py-line"><tt class="py-comment"># XMPP-session flags</tt> </tt>
<a name="L69"></a><tt class="py-lineno">  69</tt>  <tt class="py-line"><tt id="link-10" class="py-name" targets="Variable spade.xmpp.session.SESSION_NOT_AUTHED=spade.xmpp.session-module.html#SESSION_NOT_AUTHED,Variable spade.xmppd.modules.router.SESSION_NOT_AUTHED=spade.xmppd.modules.router-module.html#SESSION_NOT_AUTHED,Variable spade.xmppd.modules.stream.SESSION_NOT_AUTHED=spade.xmppd.modules.stream-module.html#SESSION_NOT_AUTHED,Variable spade.xmppd.xmppd.SESSION_NOT_AUTHED=spade.xmppd.xmppd-module.html#SESSION_NOT_AUTHED"><a title="spade.xmpp.session.SESSION_NOT_AUTHED
spade.xmppd.modules.router.SESSION_NOT_AUTHED
spade.xmppd.modules.stream.SESSION_NOT_AUTHED
spade.xmppd.xmppd.SESSION_NOT_AUTHED" class="py-name" href="#" onclick="return doclink('link-10', 'SESSION_NOT_AUTHED', 'link-10');">SESSION_NOT_AUTHED</a></tt>  <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L70"></a><tt class="py-lineno">  70</tt>  <tt class="py-line"><tt id="link-11" class="py-name" targets="Variable spade.xmpp.session.SESSION_AUTHED=spade.xmpp.session-module.html#SESSION_AUTHED,Variable spade.xmppd.modules.router.SESSION_AUTHED=spade.xmppd.modules.router-module.html#SESSION_AUTHED,Variable spade.xmppd.modules.stream.SESSION_AUTHED=spade.xmppd.modules.stream-module.html#SESSION_AUTHED,Variable spade.xmppd.xmppd.SESSION_AUTHED=spade.xmppd.xmppd-module.html#SESSION_AUTHED"><a title="spade.xmpp.session.SESSION_AUTHED
spade.xmppd.modules.router.SESSION_AUTHED
spade.xmppd.modules.stream.SESSION_AUTHED
spade.xmppd.xmppd.SESSION_AUTHED" class="py-name" href="#" onclick="return doclink('link-11', 'SESSION_AUTHED', 'link-11');">SESSION_AUTHED</a></tt>      <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L71"></a><tt class="py-lineno">  71</tt>  <tt class="py-line"><tt id="link-12" class="py-name" targets="Variable spade.xmpp.session.SESSION_BOUND=spade.xmpp.session-module.html#SESSION_BOUND,Variable spade.xmppd.modules.router.SESSION_BOUND=spade.xmppd.modules.router-module.html#SESSION_BOUND,Variable spade.xmppd.modules.stream.SESSION_BOUND=spade.xmppd.modules.stream-module.html#SESSION_BOUND,Variable spade.xmppd.xmppd.SESSION_BOUND=spade.xmppd.xmppd-module.html#SESSION_BOUND"><a title="spade.xmpp.session.SESSION_BOUND
spade.xmppd.modules.router.SESSION_BOUND
spade.xmppd.modules.stream.SESSION_BOUND
spade.xmppd.xmppd.SESSION_BOUND" class="py-name" href="#" onclick="return doclink('link-12', 'SESSION_BOUND', 'link-12');">SESSION_BOUND</a></tt>       <tt class="py-op">=</tt> <tt class="py-number">3</tt> </tt>
<a name="L72"></a><tt class="py-lineno">  72</tt>  <tt class="py-line"><tt id="link-13" class="py-name" targets="Variable spade.xmpp.session.SESSION_OPENED=spade.xmpp.session-module.html#SESSION_OPENED,Variable spade.xmppd.modules.router.SESSION_OPENED=spade.xmppd.modules.router-module.html#SESSION_OPENED,Variable spade.xmppd.modules.stream.SESSION_OPENED=spade.xmppd.modules.stream-module.html#SESSION_OPENED,Variable spade.xmppd.xmppd.SESSION_OPENED=spade.xmppd.xmppd-module.html#SESSION_OPENED"><a title="spade.xmpp.session.SESSION_OPENED
spade.xmppd.modules.router.SESSION_OPENED
spade.xmppd.modules.stream.SESSION_OPENED
spade.xmppd.xmppd.SESSION_OPENED" class="py-name" href="#" onclick="return doclink('link-13', 'SESSION_OPENED', 'link-13');">SESSION_OPENED</a></tt>      <tt class="py-op">=</tt> <tt class="py-number">4</tt> </tt>
<a name="L73"></a><tt class="py-lineno">  73</tt>  <tt class="py-line"><tt class="py-comment"># XMLRPC-session flags</tt> </tt>
<a name="L74"></a><tt class="py-lineno">  74</tt>  <tt class="py-line"><tt id="link-14" class="py-name" targets="Variable spade.xmppd.modules.stream.XMLRPC_STAGE_ZERO=spade.xmppd.modules.stream-module.html#XMLRPC_STAGE_ZERO,Variable spade.xmppd.xmppd.XMLRPC_STAGE_ZERO=spade.xmppd.xmppd-module.html#XMLRPC_STAGE_ZERO"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_ZERO
spade.xmppd.xmppd.XMLRPC_STAGE_ZERO" class="py-name" href="#" onclick="return doclink('link-14', 'XMLRPC_STAGE_ZERO', 'link-14');">XMLRPC_STAGE_ZERO</a></tt>   <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L75"></a><tt class="py-lineno">  75</tt>  <tt class="py-line"><tt id="link-15" class="py-name" targets="Variable spade.xmppd.modules.stream.XMLRPC_STAGE_ONE=spade.xmppd.modules.stream-module.html#XMLRPC_STAGE_ONE,Variable spade.xmppd.xmppd.XMLRPC_STAGE_ONE=spade.xmppd.xmppd-module.html#XMLRPC_STAGE_ONE"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_ONE
spade.xmppd.xmppd.XMLRPC_STAGE_ONE" class="py-name" href="#" onclick="return doclink('link-15', 'XMLRPC_STAGE_ONE', 'link-15');">XMLRPC_STAGE_ONE</a></tt>    <tt class="py-op">=</tt> <tt class="py-number">1</tt> </tt>
<a name="L76"></a><tt class="py-lineno">  76</tt>  <tt class="py-line"><tt id="link-16" class="py-name" targets="Variable spade.xmppd.modules.stream.XMLRPC_STAGE_TWO=spade.xmppd.modules.stream-module.html#XMLRPC_STAGE_TWO,Variable spade.xmppd.xmppd.XMLRPC_STAGE_TWO=spade.xmppd.xmppd-module.html#XMLRPC_STAGE_TWO"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_TWO
spade.xmppd.xmppd.XMLRPC_STAGE_TWO" class="py-name" href="#" onclick="return doclink('link-16', 'XMLRPC_STAGE_TWO', 'link-16');">XMLRPC_STAGE_TWO</a></tt>    <tt class="py-op">=</tt> <tt class="py-number">2</tt> </tt>
<a name="L77"></a><tt class="py-lineno">  77</tt>  <tt class="py-line"><tt id="link-17" class="py-name" targets="Variable spade.xmppd.modules.stream.XMLRPC_STAGE_THREE=spade.xmppd.modules.stream-module.html#XMLRPC_STAGE_THREE,Variable spade.xmppd.xmppd.XMLRPC_STAGE_THREE=spade.xmppd.xmppd-module.html#XMLRPC_STAGE_THREE"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_THREE
spade.xmppd.xmppd.XMLRPC_STAGE_THREE" class="py-name" href="#" onclick="return doclink('link-17', 'XMLRPC_STAGE_THREE', 'link-17');">XMLRPC_STAGE_THREE</a></tt>  <tt class="py-op">=</tt> <tt class="py-number">4</tt> </tt>
<a name="L78"></a><tt class="py-lineno">  78</tt>  <tt class="py-line"><tt id="link-18" class="py-name" targets="Variable spade.xmppd.modules.stream.XMLRPC_STAGE_FOUR=spade.xmppd.modules.stream-module.html#XMLRPC_STAGE_FOUR,Variable spade.xmppd.xmppd.XMLRPC_STAGE_FOUR=spade.xmppd.xmppd-module.html#XMLRPC_STAGE_FOUR"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_FOUR
spade.xmppd.xmppd.XMLRPC_STAGE_FOUR" class="py-name" href="#" onclick="return doclink('link-18', 'XMLRPC_STAGE_FOUR', 'link-18');">XMLRPC_STAGE_FOUR</a></tt>   <tt class="py-op">=</tt> <tt class="py-number">8</tt> </tt>
<a name="L79"></a><tt class="py-lineno">  79</tt>  <tt class="py-line"> </tt>
<a name="fake_select"></a><div id="fake_select-def"><a name="L80"></a><tt class="py-lineno">  80</tt> <a class="py-toggle" href="#" id="fake_select-toggle" onclick="return toggle('fake_select');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.fake_select-class.html">fake_select</a><tt class="py-op">:</tt> </tt>
</div><div id="fake_select-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="fake_select-expanded"><a name="fake_select.__init__"></a><div id="fake_select.__init__-def"><a name="L81"></a><tt class="py-lineno">  81</tt> <a class="py-toggle" href="#" id="fake_select.__init__-toggle" onclick="return toggle('fake_select.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.fake_select-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="fake_select.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="fake_select.__init__-expanded"><a name="L82"></a><tt class="py-lineno">  82</tt>  <tt class="py-line">        <tt class="py-comment">## poll flags</tt> </tt>
<a name="L83"></a><tt class="py-lineno">  83</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt>  <tt class="py-op">=</tt> <tt class="py-number">0x0001</tt> </tt>
<a name="L84"></a><tt class="py-lineno">  84</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0004</tt> </tt>
<a name="L85"></a><tt class="py-lineno">  85</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLERR</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0008</tt> </tt>
<a name="L86"></a><tt class="py-lineno">  86</tt>  <tt class="py-line"> </tt>
<a name="L87"></a><tt class="py-lineno">  87</tt>  <tt class="py-line">        <tt class="py-comment">## synonyms</tt> </tt>
<a name="L88"></a><tt class="py-lineno">  88</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLNORM</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L89"></a><tt class="py-lineno">  89</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLPRI</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L90"></a><tt class="py-lineno">  90</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLRDNORM</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L91"></a><tt class="py-lineno">  91</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLRDBAND</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L92"></a><tt class="py-lineno">  92</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLWRNORM</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> </tt>
<a name="L93"></a><tt class="py-lineno">  93</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLWRBAND</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> </tt>
<a name="L94"></a><tt class="py-lineno">  94</tt>  <tt class="py-line"> </tt>
<a name="L95"></a><tt class="py-lineno">  95</tt>  <tt class="py-line">        <tt class="py-comment">## ignored</tt> </tt>
<a name="L96"></a><tt class="py-lineno">  96</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLHUP</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0010</tt> </tt>
<a name="L97"></a><tt class="py-lineno">  97</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLNVAL</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0020</tt> </tt>
</div><a name="L98"></a><tt class="py-lineno">  98</tt>  <tt class="py-line"> </tt>
<a name="L99"></a><tt class="py-lineno">  99</tt>  <tt class="py-line">    <tt class="py-string">"""def select(self, rlist, wlist, xlist, timeout=1.0):</tt> </tt>
<a name="L100"></a><tt class="py-lineno"> 100</tt>  <tt class="py-line"><tt class="py-string">            import select           </tt> </tt>
<a name="L101"></a><tt class="py-lineno"> 101</tt>  <tt class="py-line"><tt class="py-string">            return select.select(rlist, wlist, xlist, timeout)"""</tt> </tt>
<a name="L102"></a><tt class="py-lineno"> 102</tt>  <tt class="py-line">  </tt>
<a name="fake_select.poll"></a><div id="fake_select.poll-def"><a name="L103"></a><tt class="py-lineno"> 103</tt> <a class="py-toggle" href="#" id="fake_select.poll-toggle" onclick="return toggle('fake_select.poll');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.fake_select.poll-class.html">poll</a><tt class="py-op">:</tt> </tt>
</div><div id="fake_select.poll-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="fake_select.poll-expanded"><a name="fake_select.poll.__init__"></a><div id="fake_select.poll.__init__-def"><a name="L104"></a><tt class="py-lineno"> 104</tt> <a class="py-toggle" href="#" id="fake_select.poll.__init__-toggle" onclick="return toggle('fake_select.poll.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.fake_select.poll-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="fake_select.poll.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="fake_select.poll.__init__-expanded"><a name="L105"></a><tt class="py-lineno"> 105</tt>  <tt class="py-line">            <tt class="py-comment">## poll flags</tt> </tt>
<a name="L106"></a><tt class="py-lineno"> 106</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt>  <tt class="py-op">=</tt> <tt class="py-number">0x0001</tt> </tt>
<a name="L107"></a><tt class="py-lineno"> 107</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0004</tt> </tt>
<a name="L108"></a><tt class="py-lineno"> 108</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLERR</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0008</tt> </tt>
<a name="L109"></a><tt class="py-lineno"> 109</tt>  <tt class="py-line"> </tt>
<a name="L110"></a><tt class="py-lineno"> 110</tt>  <tt class="py-line">            <tt class="py-comment">## synonyms</tt> </tt>
<a name="L111"></a><tt class="py-lineno"> 111</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLNORM</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L112"></a><tt class="py-lineno"> 112</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLPRI</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L113"></a><tt class="py-lineno"> 113</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLRDNORM</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L114"></a><tt class="py-lineno"> 114</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLRDBAND</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L115"></a><tt class="py-lineno"> 115</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLWRNORM</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> </tt>
<a name="L116"></a><tt class="py-lineno"> 116</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLWRBAND</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> </tt>
<a name="L117"></a><tt class="py-lineno"> 117</tt>  <tt class="py-line"> </tt>
<a name="L118"></a><tt class="py-lineno"> 118</tt>  <tt class="py-line">            <tt class="py-comment">## ignored</tt> </tt>
<a name="L119"></a><tt class="py-lineno"> 119</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLHUP</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0010</tt> </tt>
<a name="L120"></a><tt class="py-lineno"> 120</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLNVAL</tt> <tt class="py-op">=</tt> <tt class="py-number">0x0020</tt> </tt>
<a name="L121"></a><tt class="py-lineno"> 121</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
</div><a name="L122"></a><tt class="py-lineno"> 122</tt>  <tt class="py-line"> </tt>
<a name="fake_select.poll.register"></a><div id="fake_select.poll.register-def"><a name="L123"></a><tt class="py-lineno"> 123</tt> <a class="py-toggle" href="#" id="fake_select.poll.register-toggle" onclick="return toggle('fake_select.poll.register');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.fake_select.poll-class.html#register">register</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">fd</tt><tt class="py-op">,</tt><tt class="py-param">eventmask</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="fake_select.poll.register-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="fake_select.poll.register-expanded"><a name="L124"></a><tt class="py-lineno"> 124</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L125"></a><tt class="py-lineno"> 125</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">[</tt><tt class="py-name">fd</tt><tt class="py-op">.</tt><tt id="link-19" class="py-name" targets="Method spade.xmppd.xmppd.RPC_Client.fileno()=spade.xmppd.xmppd.RPC_Client-class.html#fileno,Method spade.xmppd.xmppd.Session.fileno()=spade.xmppd.xmppd.Session-class.html#fileno"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-19', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'fd'</tt><tt class="py-op">:</tt><tt class="py-name">fd</tt><tt class="py-op">,</tt><tt class="py-string">'mask'</tt><tt class="py-op">:</tt><tt class="py-name">eventmask</tt><tt class="py-op">}</tt> </tt>
<a name="L126"></a><tt class="py-lineno"> 126</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L127"></a><tt class="py-lineno"> 127</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L128"></a><tt class="py-lineno"> 128</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div><a name="fake_select.poll.unregister"></a><div id="fake_select.poll.unregister-def"><a name="L129"></a><tt class="py-lineno"> 129</tt> <a class="py-toggle" href="#" id="fake_select.poll.unregister-toggle" onclick="return toggle('fake_select.poll.unregister');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.fake_select.poll-class.html#unregister">unregister</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">fd</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="fake_select.poll.unregister-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="fake_select.poll.unregister-expanded"><a name="L130"></a><tt class="py-lineno"> 130</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L131"></a><tt class="py-lineno"> 131</tt>  <tt class="py-line">                <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">[</tt><tt class="py-name">fd</tt><tt class="py-op">.</tt><tt id="link-20" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-20', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L132"></a><tt class="py-lineno"> 132</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L133"></a><tt class="py-lineno"> 133</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L134"></a><tt class="py-lineno"> 134</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div><a name="fake_select.poll.poll"></a><div id="fake_select.poll.poll-def"><a name="L135"></a><tt class="py-lineno"> 135</tt> <a class="py-toggle" href="#" id="fake_select.poll.poll-toggle" onclick="return toggle('fake_select.poll.poll');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.fake_select.poll-class.html#poll">poll</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">timeout</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="fake_select.poll.poll-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="fake_select.poll.poll-expanded"><a name="L136"></a><tt class="py-lineno"> 136</tt>  <tt class="py-line"> </tt>
<a name="L137"></a><tt class="py-lineno"> 137</tt>  <tt class="py-line">            <tt class="py-name">data</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L138"></a><tt class="py-lineno"> 138</tt>  <tt class="py-line">            <tt id="link-21" class="py-name" targets="Class spade.xmppd.xmppd.fake_select.poll=spade.xmppd.xmppd.fake_select.poll-class.html,Method spade.xmppd.xmppd.fake_select.poll.poll()=spade.xmppd.xmppd.fake_select.poll-class.html#poll"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-21', 'poll', 'link-21');">poll</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'in'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'out'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'err'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">}</tt> </tt>
<a name="L139"></a><tt class="py-lineno"> 139</tt>  <tt class="py-line">            <tt class="py-name">out</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L140"></a><tt class="py-lineno"> 140</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-22" class="py-name" targets="Variable spade.Agent.x=spade.Agent-module.html#x,Variable spade.bdi.x=spade.bdi-module.html#x,Variable spade.logic.x=spade.logic-module.html#x"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-22', 'x', 'link-22');">x</a></tt><tt class="py-op">,</tt><tt id="link-23" class="py-name" targets="Variable spade.Agent.y=spade.Agent-module.html#y,Variable spade.bdi.y=spade.bdi-module.html#y,Variable spade.logic.y=spade.logic-module.html#y"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-23', 'y', 'link-23');">y</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">.</tt><tt id="link-24" class="py-name" targets="Method spade.odict.odict.iteritems()=spade.odict.odict-class.html#iteritems"><a title="spade.odict.odict.iteritems" class="py-name" href="#" onclick="return doclink('link-24', 'iteritems', 'link-24');">iteritems</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L141"></a><tt class="py-lineno"> 141</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-25" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-25', 'y', 'link-23');">y</a></tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt><tt class="py-op">&amp;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt><tt class="py-op">:</tt> <tt id="link-26" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-26', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'in'</tt><tt class="py-op">]</tt> <tt class="py-op">+=</tt> <tt class="py-op">[</tt><tt id="link-27" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-27', 'y', 'link-23');">y</a></tt><tt class="py-op">[</tt><tt class="py-string">'fd'</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L142"></a><tt class="py-lineno"> 142</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-28" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-28', 'y', 'link-23');">y</a></tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt><tt class="py-op">&amp;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt><tt class="py-op">:</tt> <tt id="link-29" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-29', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'out'</tt><tt class="py-op">]</tt> <tt class="py-op">+=</tt> <tt class="py-op">[</tt><tt id="link-30" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-30', 'y', 'link-23');">y</a></tt><tt class="py-op">[</tt><tt class="py-string">'fd'</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L143"></a><tt class="py-lineno"> 143</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-31" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-31', 'y', 'link-23');">y</a></tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt><tt class="py-op">&amp;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLERR</tt> <tt class="py-op">==</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLERR</tt><tt class="py-op">:</tt> <tt id="link-32" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-32', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'err'</tt><tt class="py-op">]</tt> <tt class="py-op">+=</tt> <tt class="py-op">[</tt><tt id="link-33" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-33', 'y', 'link-23');">y</a></tt><tt class="py-op">[</tt><tt class="py-string">'fd'</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L144"></a><tt class="py-lineno"> 144</tt>  <tt class="py-line"> </tt>
<a name="L145"></a><tt class="py-lineno"> 145</tt>  <tt class="py-line">            <tt class="py-comment">#Select does not work with every list empty. PATCH:</tt> </tt>
<a name="L146"></a><tt class="py-lineno"> 146</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-34" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-34', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'in'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-35" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-35', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'out'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">0</tt> <tt class="py-keyword">and</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-36" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-36', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'err'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-number">0</tt><tt class="py-op">:</tt>  </tt>
<a name="L147"></a><tt class="py-lineno"> 147</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">timeout</tt><tt class="py-op">:</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">sleep</tt><tt class="py-op">(</tt><tt class="py-name">timeout</tt><tt class="py-op">/</tt><tt class="py-number">1000.0</tt><tt class="py-op">)</tt> </tt>
<a name="L148"></a><tt class="py-lineno"> 148</tt>  <tt class="py-line">                    <tt class="py-keyword">return</tt> <tt class="py-name">out</tt> </tt>
<a name="L149"></a><tt class="py-lineno"> 149</tt>  <tt class="py-line"> </tt>
<a name="L150"></a><tt class="py-lineno"> 150</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">timeout</tt> <tt class="py-op">&lt;</tt> <tt class="py-number">1</tt> <tt class="py-keyword">or</tt> <tt class="py-name">timeout</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L151"></a><tt class="py-lineno"> 151</tt>  <tt class="py-line">                <tt id="link-37" class="py-name" targets="Variable spade.xmppd.modules.stream.pi=spade.xmppd.modules.stream-module.html#pi,Variable spade.xmppd.xmppd.pi=spade.xmppd.xmppd-module.html#pi"><a title="spade.xmppd.modules.stream.pi
spade.xmppd.xmppd.pi" class="py-name" href="#" onclick="return doclink('link-37', 'pi', 'link-37');">pi</a></tt><tt class="py-op">,</tt><tt class="py-name">po</tt><tt class="py-op">,</tt><tt class="py-name">pe</tt> <tt class="py-op">=</tt> <tt class="py-name">select</tt><tt class="py-op">.</tt><tt class="py-name">select</tt><tt class="py-op">(</tt><tt id="link-38" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-38', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'in'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt id="link-39" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-39', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'out'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt id="link-40" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-40', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'err'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L152"></a><tt class="py-lineno"> 152</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L153"></a><tt class="py-lineno"> 153</tt>  <tt class="py-line">                <tt id="link-41" class="py-name"><a title="spade.xmppd.modules.stream.pi
spade.xmppd.xmppd.pi" class="py-name" href="#" onclick="return doclink('link-41', 'pi', 'link-37');">pi</a></tt><tt class="py-op">,</tt><tt class="py-name">po</tt><tt class="py-op">,</tt><tt class="py-name">pe</tt> <tt class="py-op">=</tt> <tt class="py-name">select</tt><tt class="py-op">.</tt><tt class="py-name">select</tt><tt class="py-op">(</tt><tt id="link-42" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-42', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'in'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt id="link-43" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-43', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'out'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt id="link-44" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-44', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'err'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">timeout</tt><tt class="py-op">/</tt><tt class="py-number">1000.0</tt><tt class="py-op">)</tt> </tt>
<a name="L154"></a><tt class="py-lineno"> 154</tt>  <tt class="py-line"> </tt>
<a name="L155"></a><tt class="py-lineno"> 155</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-45" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-45', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt id="link-46" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-46', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'in'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L156"></a><tt class="py-lineno"> 156</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-47" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-47', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt id="link-48" class="py-name"><a title="spade.xmppd.modules.stream.pi
spade.xmppd.xmppd.pi" class="py-name" href="#" onclick="return doclink('link-48', 'pi', 'link-37');">pi</a></tt><tt class="py-op">:</tt> </tt>
<a name="L157"></a><tt class="py-lineno"> 157</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">data</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-49" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-49', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-50" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-50', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L158"></a><tt class="py-lineno"> 158</tt>  <tt class="py-line">                        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-51" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-51', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-52" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-52', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-53" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-53', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-54" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-54', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt> <tt class="py-op">|</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt> </tt>
<a name="L159"></a><tt class="py-lineno"> 159</tt>  <tt class="py-line">                    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L160"></a><tt class="py-lineno"> 160</tt>  <tt class="py-line">                        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-55" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-55', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-56" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-56', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'fd'</tt><tt class="py-op">:</tt><tt id="link-57" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-57', 'x', 'link-22');">x</a></tt><tt class="py-op">,</tt><tt class="py-string">'mask'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLIN</tt><tt class="py-op">}</tt> </tt>
<a name="L161"></a><tt class="py-lineno"> 161</tt>  <tt class="py-line"> </tt>
<a name="L162"></a><tt class="py-lineno"> 162</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-58" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-58', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt id="link-59" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-59', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'out'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L163"></a><tt class="py-lineno"> 163</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-60" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-60', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">po</tt><tt class="py-op">:</tt> </tt>
<a name="L164"></a><tt class="py-lineno"> 164</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">data</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-61" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-61', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-62" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-62', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L165"></a><tt class="py-lineno"> 165</tt>  <tt class="py-line">                        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-63" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-63', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-64" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-64', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-65" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-65', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-66" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-66', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt> <tt class="py-op">|</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt> </tt>
<a name="L166"></a><tt class="py-lineno"> 166</tt>  <tt class="py-line">                    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L167"></a><tt class="py-lineno"> 167</tt>  <tt class="py-line">                        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-67" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-67', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-68" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-68', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'fd'</tt><tt class="py-op">:</tt><tt id="link-69" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-69', 'x', 'link-22');">x</a></tt><tt class="py-op">,</tt><tt class="py-string">'mask'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLOUT</tt><tt class="py-op">}</tt> </tt>
<a name="L168"></a><tt class="py-lineno"> 168</tt>  <tt class="py-line"> </tt>
<a name="L169"></a><tt class="py-lineno"> 169</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-70" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-70', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt id="link-71" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-71', 'poll', 'link-21');">poll</a></tt><tt class="py-op">[</tt><tt class="py-string">'err'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L170"></a><tt class="py-lineno"> 170</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-72" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-72', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">pe</tt><tt class="py-op">:</tt> </tt>
<a name="L171"></a><tt class="py-lineno"> 171</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">data</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-73" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-73', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-74" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-74', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L172"></a><tt class="py-lineno"> 172</tt>  <tt class="py-line">                        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-75" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-75', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-76" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-76', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-77" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-77', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-78" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-78', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt> <tt class="py-op">|</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLERR</tt> </tt>
<a name="L173"></a><tt class="py-lineno"> 173</tt>  <tt class="py-line">                    <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L174"></a><tt class="py-lineno"> 174</tt>  <tt class="py-line">                        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt id="link-79" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-79', 'x', 'link-22');">x</a></tt><tt class="py-op">.</tt><tt id="link-80" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-80', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'fd'</tt><tt class="py-op">:</tt><tt id="link-81" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-81', 'x', 'link-22');">x</a></tt><tt class="py-op">,</tt><tt class="py-string">'mask'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">POLLERR</tt><tt class="py-op">}</tt> </tt>
<a name="L175"></a><tt class="py-lineno"> 175</tt>  <tt class="py-line"> </tt>
<a name="L176"></a><tt class="py-lineno"> 176</tt>  <tt class="py-line"> </tt>
<a name="L177"></a><tt class="py-lineno"> 177</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">k</tt><tt class="py-op">,</tt><tt id="link-82" class="py-name" targets="Function spade.logic.d()=spade.logic-module.html#d"><a title="spade.logic.d" class="py-name" href="#" onclick="return doclink('link-82', 'd', 'link-82');">d</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">data</tt><tt class="py-op">.</tt><tt id="link-83" class="py-name"><a title="spade.odict.odict.iteritems" class="py-name" href="#" onclick="return doclink('link-83', 'iteritems', 'link-24');">iteritems</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L178"></a><tt class="py-lineno"> 178</tt>  <tt class="py-line">                <tt class="py-name">out</tt> <tt class="py-op">+=</tt> <tt class="py-op">[</tt><tt class="py-op">(</tt><tt class="py-name">k</tt><tt class="py-op">,</tt><tt id="link-84" class="py-name"><a title="spade.logic.d" class="py-name" href="#" onclick="return doclink('link-84', 'd', 'link-82');">d</a></tt><tt class="py-op">[</tt><tt class="py-string">'mask'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L179"></a><tt class="py-lineno"> 179</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">out</tt> </tt>
</div></div></div><a name="L180"></a><tt class="py-lineno"> 180</tt>  <tt class="py-line"> </tt>
<a name="L181"></a><tt class="py-lineno"> 181</tt>  <tt class="py-line"> </tt>
<a name="L182"></a><tt class="py-lineno"> 182</tt>  <tt class="py-line"><tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L183"></a><tt class="py-lineno"> 183</tt>  <tt class="py-line">        <tt class="py-name">select</tt><tt class="py-op">.</tt><tt id="link-85" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-85', 'poll', 'link-21');">poll</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L184"></a><tt class="py-lineno"> 184</tt>  <tt class="py-line"><tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L185"></a><tt class="py-lineno"> 185</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">select</tt> <tt class="py-keyword">as</tt> <tt class="py-name">original_select</tt> </tt>
<a name="L186"></a><tt class="py-lineno"> 186</tt>  <tt class="py-line">        <tt class="py-name">select</tt> <tt class="py-op">=</tt> <tt id="link-86" class="py-name" targets="Class spade.xmppd.xmppd.fake_select=spade.xmppd.xmppd.fake_select-class.html"><a title="spade.xmppd.xmppd.fake_select" class="py-name" href="#" onclick="return doclink('link-86', 'fake_select', 'link-86');">fake_select</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L187"></a><tt class="py-lineno"> 187</tt>  <tt class="py-line">        <tt class="py-name">select</tt><tt class="py-op">.</tt><tt class="py-name">select</tt> <tt class="py-op">=</tt> <tt class="py-name">original_select</tt><tt class="py-op">.</tt><tt class="py-name">select</tt> </tt>
<a name="L188"></a><tt class="py-lineno"> 188</tt>  <tt class="py-line"> </tt>
<a name="L189"></a><tt class="py-lineno"> 189</tt>  <tt class="py-line"> </tt>
<a name="L190"></a><tt class="py-lineno"> 190</tt>  <tt class="py-line"> </tt>
<a name="L191"></a><tt class="py-lineno"> 191</tt>  <tt class="py-line"><tt class="py-comment">#Import all of the localization files</tt> </tt>
<a name="L192"></a><tt class="py-lineno"> 192</tt>  <tt class="py-line"><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-87" class="py-name" targets="Method spade.dblite.Base.update()=spade.dblite.Base-class.html#update,Method spade.odict.odict.update()=spade.odict.odict-class.html#update,Method spade.xmppd.modules.router.Router.update()=spade.xmppd.modules.router.Router-class.html#update"><a title="spade.dblite.Base.update
spade.odict.odict.update
spade.xmppd.modules.router.Router.update" class="py-name" href="#" onclick="return doclink('link-87', 'update', 'link-87');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'LANG_LIST'</tt><tt class="py-op">:</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L193"></a><tt class="py-lineno"> 193</tt>  <tt class="py-line"><tt class="py-comment">#for m in os.listdir('locale'):</tt> </tt>
<a name="L194"></a><tt class="py-lineno"> 194</tt>  <tt class="py-line"><tt class="py-comment">#    if m[:2]=='__' or m[-3:]&lt;&gt;'.py': continue</tt> </tt>
<a name="L195"></a><tt class="py-lineno"> 195</tt>  <tt class="py-line"><tt class="py-comment">#    execfile(os.getcwd() + '/locale/' + m[:-3] + '.py')</tt> </tt>
<a name="L196"></a><tt class="py-lineno"> 196</tt>  <tt class="py-line"><tt class="py-keyword">from</tt> <tt id="link-88" class="py-name" targets="Module spade.xmppd.locales=spade.xmppd.locales-module.html"><a title="spade.xmppd.locales" class="py-name" href="#" onclick="return doclink('link-88', 'locales', 'link-88');">locales</a></tt> <tt class="py-keyword">import</tt> <tt class="py-op">*</tt> </tt>
<a name="L197"></a><tt class="py-lineno"> 197</tt>  <tt class="py-line"> </tt>
<a name="localizer"></a><div id="localizer-def"><a name="L198"></a><tt class="py-lineno"> 198</tt> <a class="py-toggle" href="#" id="localizer-toggle" onclick="return toggle('localizer');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.localizer-class.html">localizer</a><tt class="py-op">:</tt> </tt>
</div><div id="localizer-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="localizer-expanded"><a name="localizer.__init__"></a><div id="localizer.__init__-def"><a name="L199"></a><tt class="py-lineno"> 199</tt> <a class="py-toggle" href="#" id="localizer.__init__-toggle" onclick="return toggle('localizer.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.localizer-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">lang</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="localizer.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="localizer.__init__-expanded"><a name="L200"></a><tt class="py-lineno"> 200</tt>  <tt class="py-line">        <tt class="py-keyword">global</tt> <tt id="link-89" class="py-name" targets="Variable spade.xmppd.modules.stream.DEFAULT_LANG=spade.xmppd.modules.stream-module.html#DEFAULT_LANG,Variable spade.xmppd.xmppd.DEFAULT_LANG=spade.xmppd.xmppd-module.html#DEFAULT_LANG"><a title="spade.xmppd.modules.stream.DEFAULT_LANG
spade.xmppd.xmppd.DEFAULT_LANG" class="py-name" href="#" onclick="return doclink('link-89', 'DEFAULT_LANG', 'link-89');">DEFAULT_LANG</a></tt> </tt>
<a name="L201"></a><tt class="py-lineno"> 201</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-90" class="py-name" targets="Method spade.pyratemp.TemplateEval._default()=spade.pyratemp.TemplateEval-class.html#_default"><a title="spade.pyratemp.TemplateEval._default" class="py-name" href="#" onclick="return doclink('link-90', '_default', 'link-90');">_default</a></tt> <tt class="py-op">=</tt> <tt id="link-91" class="py-name"><a title="spade.xmppd.modules.stream.DEFAULT_LANG
spade.xmppd.xmppd.DEFAULT_LANG" class="py-name" href="#" onclick="return doclink('link-91', 'DEFAULT_LANG', 'link-89');">DEFAULT_LANG</a></tt> </tt>
<a name="L202"></a><tt class="py-lineno"> 202</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">lang</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt> <tt class="py-keyword">or</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">lang</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L203"></a><tt class="py-lineno"> 203</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_lang</tt> <tt class="py-op">=</tt> <tt id="link-92" class="py-name"><a title="spade.xmppd.modules.stream.DEFAULT_LANG
spade.xmppd.xmppd.DEFAULT_LANG" class="py-name" href="#" onclick="return doclink('link-92', 'DEFAULT_LANG', 'link-89');">DEFAULT_LANG</a></tt> </tt>
<a name="L204"></a><tt class="py-lineno"> 204</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L205"></a><tt class="py-lineno"> 205</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_lang</tt> <tt class="py-op">=</tt> <tt class="py-name">lang</tt> </tt>
</div><a name="L206"></a><tt class="py-lineno"> 206</tt>  <tt class="py-line"> </tt>
<a name="localizer.set_lang"></a><div id="localizer.set_lang-def"><a name="L207"></a><tt class="py-lineno"> 207</tt> <a class="py-toggle" href="#" id="localizer.set_lang-toggle" onclick="return toggle('localizer.set_lang');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.localizer-class.html#set_lang">set_lang</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">lang</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="localizer.set_lang-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="localizer.set_lang-expanded"><a name="L208"></a><tt class="py-lineno"> 208</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_lang</tt> <tt class="py-op">=</tt> <tt class="py-name">lang</tt> </tt>
<a name="L209"></a><tt class="py-lineno"> 209</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
</div><a name="L210"></a><tt class="py-lineno"> 210</tt>  <tt class="py-line"> </tt>
<a name="localizer.localize"></a><div id="localizer.localize-def"><a name="L211"></a><tt class="py-lineno"> 211</tt> <a class="py-toggle" href="#" id="localizer.localize-toggle" onclick="return toggle('localizer.localize');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.localizer-class.html#localize">localize</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">val</tt><tt class="py-op">,</tt><tt class="py-param">lang</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="localizer.localize-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="localizer.localize-expanded"><a name="L212"></a><tt class="py-lineno"> 212</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">lang</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt> <tt class="py-keyword">or</tt> <tt class="py-name">val</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">lang</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L213"></a><tt class="py-lineno"> 213</tt>  <tt class="py-line">            <tt class="py-name">lang</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_lang</tt> </tt>
<a name="L214"></a><tt class="py-lineno"> 214</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">val</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">lang</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt> <tt class="py-keyword">and</tt> <tt class="py-name">val</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-93" class="py-name"><a title="spade.pyratemp.TemplateEval._default" class="py-name" href="#" onclick="return doclink('link-93', '_default', 'link-90');">_default</a></tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L215"></a><tt class="py-lineno"> 215</tt>  <tt class="py-line">            <tt class="py-name">lang</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-94" class="py-name"><a title="spade.pyratemp.TemplateEval._default" class="py-name" href="#" onclick="return doclink('link-94', '_default', 'link-90');">_default</a></tt> </tt>
<a name="L216"></a><tt class="py-lineno"> 216</tt>  <tt class="py-line"> </tt>
<a name="L217"></a><tt class="py-lineno"> 217</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L218"></a><tt class="py-lineno"> 218</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">val</tt><tt class="py-op">[</tt><tt class="py-name">lang</tt><tt class="py-op">]</tt> </tt>
<a name="L219"></a><tt class="py-lineno"> 219</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L220"></a><tt class="py-lineno"> 220</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">val</tt><tt class="py-op">.</tt><tt id="link-95" class="py-name" targets="Method spade.dblite.Index.keys()=spade.dblite.Index-class.html#keys,Method spade.odict.odict.keys()=spade.odict.odict-class.html#keys,Method spade.pyparsing.ParseResults.keys()=spade.pyparsing.ParseResults-class.html#keys,Method spade.xmpp.roster.Roster.keys()=spade.xmpp.roster.Roster-class.html#keys"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-95', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">&gt;</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L221"></a><tt class="py-lineno"> 221</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">val</tt><tt class="py-op">[</tt><tt class="py-name">val</tt><tt class="py-op">.</tt><tt id="link-96" class="py-name"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-96', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L222"></a><tt class="py-lineno"> 222</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L223"></a><tt class="py-lineno"> 223</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-string">''</tt> </tt>
</div><a name="L224"></a><tt class="py-lineno"> 224</tt>  <tt class="py-line"> </tt>
<a name="localizer.build_localeset"></a><div id="localizer.build_localeset-def"><a name="L225"></a><tt class="py-lineno"> 225</tt> <a class="py-toggle" href="#" id="localizer.build_localeset-toggle" onclick="return toggle('localizer.build_localeset');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.localizer-class.html#build_localeset">build_localeset</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">records</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="localizer.build_localeset-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="localizer.build_localeset-expanded"><a name="L226"></a><tt class="py-lineno"> 226</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">record</tt> <tt class="py-keyword">in</tt> <tt class="py-name">records</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L227"></a><tt class="py-lineno"> 227</tt>  <tt class="py-line">            <tt class="py-name">var</tt><tt class="py-op">,</tt><tt class="py-name">code</tt><tt class="py-op">,</tt><tt class="py-name">text</tt><tt class="py-op">=</tt><tt class="py-name">record</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' -- '</tt><tt class="py-op">)</tt> </tt>
<a name="L228"></a><tt class="py-lineno"> 228</tt>  <tt class="py-line">            <tt id="link-97" class="py-name" targets="Variable spade.Agent.name=spade.Agent-module.html#name,Variable spade.MTP.name=spade.MTP-module.html#name,Variable spade.Organization.name=spade.Organization-module.html#name,Variable spade.Organization_new.name=spade.Organization_new-module.html#name,Variable spade.Unit.name=spade.Unit-module.html#name,Variable spade.Unit_new.name=spade.Unit_new-module.html#name,Variable spade.pubsub.name=spade.pubsub-module.html#name,Variable spade.socialnetwork.name=spade.socialnetwork-module.html#name,Variable spade.xmpp.auth.name=spade.xmpp.auth-module.html#name,Variable spade.xmpp.browser.name=spade.xmpp.browser-module.html#name,Variable spade.xmpp.commands.Command_Handler_Prototype.name=spade.xmpp.commands.Command_Handler_Prototype-class.html#name,Variable spade.xmpp.commands.TestCommand.name=spade.xmpp.commands.TestCommand-class.html#name,Variable spade.xmpp.commands.name=spade.xmpp.commands-module.html#name,Variable spade.xmpp.dispatcher.name=spade.xmpp.dispatcher-module.html#name,Variable spade.xmpp.features.name=spade.xmpp.features-module.html#name,Variable spade.xmpp.filetransfer.name=spade.xmpp.filetransfer-module.html#name,Variable spade.xmpp.name=spade.xmpp-module.html#name,Variable spade.xmpp.protocol.name=spade.xmpp.protocol-module.html#name,Variable spade.xmpp.roster.name=spade.xmpp.roster-module.html#name,Variable spade.xmpp.transports.name=spade.xmpp.transports-module.html#name,Variable spade.xmppd.modules.config.name=spade.xmppd.modules.config-module.html#name,Variable spade.xmppd.modules.db_fake.name=spade.xmppd.modules.db_fake-module.html#name,Variable spade.xmppd.modules.dialback.name=spade.xmppd.modules.dialback-module.html#name,Variable spade.xmppd.modules.jep0077.name=spade.xmppd.modules.jep0077-module.html#name,Variable spade.xmppd.modules.jep0078.name=spade.xmppd.modules.jep0078-module.html#name,Variable spade.xmppd.modules.message.name=spade.xmppd.modules.message-module.html#name,Variable spade.xmppd.modules.muc.name=spade.xmppd.modules.muc-module.html#name,Variable spade.xmppd.modules.oob.name=spade.xmppd.modules.oob-module.html#name,Variable spade.xmppd.modules.pubsub.name=spade.xmppd.modules.pubsub-module.html#name,Variable spade.xmppd.modules.roster.name=spade.xmppd.modules.roster-module.html#name,Variable spade.xmppd.modules.router.name=spade.xmppd.modules.router-module.html#name,Variable spade.xmppd.modules.stream.name=spade.xmppd.modules.stream-module.html#name,Variable spade.xmppd.modules.webadmin.name=spade.xmppd.modules.webadmin-module.html#name,Variable spade.xmppd.modules.wq.name=spade.xmppd.modules.wq-module.html#name,Variable spade.xmppd.xmppd.name=spade.xmppd.xmppd-module.html#name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-97', 'name', 'link-97');">name</a></tt><tt class="py-op">=</tt><tt class="py-name">var</tt><tt class="py-op">.</tt><tt class="py-name">upper</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">replace</tt><tt class="py-op">(</tt><tt class="py-string">'-'</tt><tt class="py-op">,</tt><tt class="py-string">'_'</tt><tt class="py-op">)</tt> </tt>
<a name="L229"></a><tt class="py-lineno"> 229</tt>  <tt class="py-line">            <tt class="py-comment">#if globals()['cmd_options'].enable_debug == True: print 'adding ' + name + '::' + code</tt> </tt>
<a name="L230"></a><tt class="py-lineno"> 230</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt id="link-98" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-98', 'name', 'link-97');">name</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L231"></a><tt class="py-lineno"> 231</tt>  <tt class="py-line">                <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt id="link-99" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-99', 'name', 'link-97');">name</a></tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-100" class="py-name"><a title="spade.dblite.Base.update
spade.odict.odict.update
spade.xmppd.modules.router.Router.update" class="py-name" href="#" onclick="return doclink('link-100', 'update', 'link-87');">update</a></tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-name">code</tt><tt class="py-op">:</tt><tt class="py-name">text</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L232"></a><tt class="py-lineno"> 232</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L233"></a><tt class="py-lineno"> 233</tt>  <tt class="py-line">                <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt id="link-101" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-101', 'name', 'link-97');">name</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-name">code</tt><tt class="py-op">:</tt><tt class="py-name">text</tt><tt class="py-op">}</tt> </tt>
<a name="L234"></a><tt class="py-lineno"> 234</tt>  <tt class="py-line">        <tt class="py-keyword">del</tt> <tt class="py-name">var</tt><tt class="py-op">,</tt><tt class="py-name">code</tt><tt class="py-op">,</tt><tt class="py-name">text</tt> </tt>
</div></div><a name="L235"></a><tt class="py-lineno"> 235</tt>  <tt class="py-line"> </tt>
<a name="Session_Dummy"></a><div id="Session_Dummy-def"><a name="L236"></a><tt class="py-lineno"> 236</tt> <a class="py-toggle" href="#" id="Session_Dummy-toggle" onclick="return toggle('Session_Dummy');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session_Dummy-class.html">Session_Dummy</a><tt class="py-op">:</tt> </tt>
</div><div id="Session_Dummy-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Session_Dummy-expanded"><a name="L237"></a><tt class="py-lineno"> 237</tt>  <tt class="py-line">    <tt class="py-docstring">"Session_Dummy is used to trick dispatch into actually sending information!"</tt> </tt>
<a name="Session_Dummy.__init__"></a><div id="Session_Dummy.__init__-def"><a name="L238"></a><tt class="py-lineno"> 238</tt> <a class="py-toggle" href="#" id="Session_Dummy.__init__-toggle" onclick="return toggle('Session_Dummy.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session_Dummy-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">server</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session_Dummy.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session_Dummy.__init__-expanded"><a name="L239"></a><tt class="py-lineno"> 239</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-102" class="py-name" targets="Class spade.xmppd.xmppd.Session_Dummy.Stream=spade.xmppd.xmppd.Session_Dummy.Stream-class.html"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-102', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L240"></a><tt class="py-lineno"> 240</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-103" class="py-name" targets="Method spade.Agent.AbstractAgent.DEBUG()=spade.Agent.AbstractAgent-class.html#DEBUG,Method spade.spade_backend.SpadeBackend.DEBUG()=spade.spade_backend.SpadeBackend-class.html#DEBUG,Method spade.xmpp.client.PlugIn.DEBUG()=spade.xmpp.client.PlugIn-class.html#DEBUG,Method spade.xmpp.simplexml.NodeBuilder.DEBUG()=spade.xmpp.simplexml.NodeBuilder-class.html#DEBUG,Method spade.xmpp.transports.HTTPPROXYsocket.DEBUG()=spade.xmpp.transports.HTTPPROXYsocket-class.html#DEBUG"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-103', 'DEBUG', 'link-103');">DEBUG</a></tt> <tt class="py-op">=</tt> <tt class="py-name">server</tt><tt class="py-op">.</tt><tt id="link-104" class="py-name" targets="Class spade.xmpp.dispatcher.Dispatcher=spade.xmpp.dispatcher.Dispatcher-class.html"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-104', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-105" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-105', 'DEBUG', 'link-103');">DEBUG</a></tt> </tt>
<a name="L241"></a><tt class="py-lineno"> 241</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expected</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
</div><a name="L242"></a><tt class="py-lineno"> 242</tt>  <tt class="py-line"> </tt>
<a name="Session_Dummy.Stream"></a><div id="Session_Dummy.Stream-def"><a name="L243"></a><tt class="py-lineno"> 243</tt> <a class="py-toggle" href="#" id="Session_Dummy.Stream-toggle" onclick="return toggle('Session_Dummy.Stream');">-</a><tt class="py-line">    <tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session_Dummy.Stream-class.html">Stream</a><tt class="py-op">:</tt> </tt>
</div><div id="Session_Dummy.Stream-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session_Dummy.Stream-expanded"><a name="Session_Dummy.Stream.__init__"></a><div id="Session_Dummy.Stream.__init__-def"><a name="L244"></a><tt class="py-lineno"> 244</tt> <a class="py-toggle" href="#" id="Session_Dummy.Stream.__init__-toggle" onclick="return toggle('Session_Dummy.Stream.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session_Dummy.Stream-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session_Dummy.Stream.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++"></div><div id="Session_Dummy.Stream.__init__-expanded"><a name="L245"></a><tt class="py-lineno"> 245</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_mini_dom</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
</div></div></div><a name="L246"></a><tt class="py-lineno"> 246</tt>  <tt class="py-line"> </tt>
<a name="L247"></a><tt class="py-lineno"> 247</tt>  <tt class="py-line"> </tt>
<a name="Session"></a><div id="Session-def"><a name="L248"></a><tt class="py-lineno"> 248</tt> <a class="py-toggle" href="#" id="Session-toggle" onclick="return toggle('Session');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html">Session</a><tt class="py-op">:</tt> </tt>
</div><div id="Session-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Session-expanded"><a name="Session.__init__"></a><div id="Session.__init__-def"><a name="L249"></a><tt class="py-lineno"> 249</tt> <a class="py-toggle" href="#" id="Session.__init__-toggle" onclick="return toggle('Session.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">socket</tt><tt class="py-op">,</tt><tt class="py-param">server</tt><tt class="py-op">,</tt><tt class="py-param">xmlns</tt><tt class="py-op">,</tt><tt class="py-param">peer</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.__init__-expanded"><a name="L250"></a><tt class="py-lineno"> 250</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_lock</tt> <tt class="py-op">=</tt> <tt class="py-name">thread</tt><tt class="py-op">.</tt><tt class="py-name">allocate_lock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L251"></a><tt class="py-lineno"> 251</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">xmlns</tt><tt class="py-op">=</tt><tt class="py-name">xmlns</tt> </tt>
<a name="L252"></a><tt class="py-lineno"> 252</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">peer</tt><tt class="py-op">:</tt> </tt>
<a name="L253"></a><tt class="py-lineno"> 253</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">=</tt><tt class="py-string">'client'</tt> </tt>
<a name="L254"></a><tt class="py-lineno"> 254</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt><tt class="py-op">=</tt><tt class="py-name">peer</tt> </tt>
<a name="L255"></a><tt class="py-lineno"> 255</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socket_state</tt><tt class="py-op">=</tt><tt id="link-106" class="py-name"><a title="spade.xmpp.session.SOCKET_UNCONNECTED
spade.xmppd.modules.stream.SOCKET_UNCONNECTED
spade.xmppd.xmppd.SOCKET_UNCONNECTED" class="py-name" href="#" onclick="return doclink('link-106', 'SOCKET_UNCONNECTED', 'link-3');">SOCKET_UNCONNECTED</a></tt> </tt>
<a name="L256"></a><tt class="py-lineno"> 256</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L257"></a><tt class="py-lineno"> 257</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">=</tt><tt class="py-string">'server'</tt> </tt>
<a name="L258"></a><tt class="py-lineno"> 258</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L259"></a><tt class="py-lineno"> 259</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socket_state</tt><tt class="py-op">=</tt><tt id="link-107" class="py-name"><a title="spade.xmpp.session.SOCKET_ALIVE
spade.xmppd.modules.stream.SOCKET_ALIVE
spade.xmppd.xmppd.SOCKET_ALIVE" class="py-name" href="#" onclick="return doclink('link-107', 'SOCKET_ALIVE', 'link-4');">SOCKET_ALIVE</a></tt> </tt>
<a name="L260"></a><tt class="py-lineno"> 260</tt>  <tt class="py-line">            <tt class="py-name">server</tt><tt class="py-op">.</tt><tt class="py-name">num_servers</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L261"></a><tt class="py-lineno"> 261</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">=</tt><tt class="py-name">socket</tt> </tt>
<a name="L262"></a><tt class="py-lineno"> 262</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_send</tt><tt class="py-op">=</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt id="link-108" class="py-name" targets="Method spade.Agent.AbstractAgent.send()=spade.Agent.AbstractAgent-class.html#send,Method spade.MTP.MTP.send()=spade.MTP.MTP-class.html#send,Method spade.xmpp.dispatcher.Dispatcher.send()=spade.xmpp.dispatcher.Dispatcher-class.html#send,Method spade.xmpp.transports.TCPsocket.send()=spade.xmpp.transports.TCPsocket-class.html#send,Method spade.xmppd.xmppd.RPC_Client.send()=spade.xmppd.xmppd.RPC_Client-class.html#send,Method spade.xmppd.xmppd.Session.send()=spade.xmppd.xmppd.Session-class.html#send"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-108', 'send', 'link-108');">send</a></tt> </tt>
<a name="L263"></a><tt class="py-lineno"> 263</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_recv</tt><tt class="py-op">=</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">recv</tt> </tt>
<a name="L264"></a><tt class="py-lineno"> 264</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L265"></a><tt class="py-lineno"> 265</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">trusted</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L266"></a><tt class="py-lineno"> 266</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_since</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L267"></a><tt class="py-lineno"> 267</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">last_seen</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L268"></a><tt class="py-lineno"> 268</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">isAdmin</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L269"></a><tt class="py-lineno"> 269</tt>  <tt class="py-line"> </tt>
<a name="L270"></a><tt class="py-lineno"> 270</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-109" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-109', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">=</tt><tt class="py-name">server</tt><tt class="py-op">.</tt><tt id="link-110" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-110', 'Dispatcher', 'link-104');">Dispatcher</a></tt> </tt>
<a name="L271"></a><tt class="py-lineno"> 271</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">DBG_LINE</tt><tt class="py-op">=</tt><tt class="py-string">'session'</tt> </tt>
<a name="L272"></a><tt class="py-lineno"> 272</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-111" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-111', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">=</tt><tt class="py-name">server</tt><tt class="py-op">.</tt><tt id="link-112" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-112', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-113" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-113', 'DEBUG', 'link-103');">DEBUG</a></tt> </tt>
<a name="L273"></a><tt class="py-lineno"> 273</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_expected</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L274"></a><tt class="py-lineno"> 274</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">=</tt><tt class="py-name">server</tt> </tt>
<a name="L275"></a><tt class="py-lineno"> 275</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">==</tt><tt class="py-string">'server'</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-114" class="py-name" targets="Variable spade.xmpp.browser.ID=spade.xmpp.browser-module.html#ID,Variable spade.xmpp.dispatcher.ID=spade.xmpp.dispatcher-module.html#ID"><a title="spade.xmpp.browser.ID
spade.xmpp.dispatcher.ID" class="py-name" href="#" onclick="return doclink('link-114', 'ID', 'link-114');">ID</a></tt><tt class="py-op">=</tt><tt class="py-op">`</tt><tt class="py-name">random</tt><tt class="py-op">.</tt><tt class="py-name">random</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">`</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L276"></a><tt class="py-lineno"> 276</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-115" class="py-name"><a title="spade.xmpp.browser.ID
spade.xmpp.dispatcher.ID" class="py-name" href="#" onclick="return doclink('link-115', 'ID', 'link-114');">ID</a></tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L277"></a><tt class="py-lineno"> 277</tt>  <tt class="py-line"> </tt>
<a name="L278"></a><tt class="py-lineno"> 278</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">=</tt><tt class="py-string">''</tt> </tt>
<a name="L279"></a><tt class="py-lineno"> 279</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lib_event</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L280"></a><tt class="py-lineno"> 280</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_queued</tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L281"></a><tt class="py-lineno"> 281</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_sent</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L282"></a><tt class="py-lineno"> 282</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L283"></a><tt class="py-lineno"> 283</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_queue_map</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L284"></a><tt class="py-lineno"> 284</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stanza_queue</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L285"></a><tt class="py-lineno"> 285</tt>  <tt class="py-line"> </tt>
<a name="L286"></a><tt class="py-lineno"> 286</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_session_state</tt><tt class="py-op">=</tt><tt id="link-116" class="py-name"><a title="spade.xmpp.session.SESSION_NOT_AUTHED
spade.xmppd.modules.router.SESSION_NOT_AUTHED
spade.xmppd.modules.stream.SESSION_NOT_AUTHED
spade.xmppd.xmppd.SESSION_NOT_AUTHED" class="py-name" href="#" onclick="return doclink('link-116', 'SESSION_NOT_AUTHED', 'link-10');">SESSION_NOT_AUTHED</a></tt> </tt>
<a name="L287"></a><tt class="py-lineno"> 287</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L288"></a><tt class="py-lineno"> 288</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-117" class="py-name" targets="Method spade.xmpp.session.Session.feature()=spade.xmpp.session.Session-class.html#feature,Method spade.xmppd.xmppd.Server.feature()=spade.xmppd.xmppd.Server-class.html#feature,Method spade.xmppd.xmppd.Session.feature()=spade.xmppd.xmppd.Session-class.html#feature"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-117', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt id="link-118" class="py-name" targets="Variable spade.Agent.NS_TLS=spade.Agent-module.html#NS_TLS,Variable spade.MTP.NS_TLS=spade.MTP-module.html#NS_TLS,Variable spade.Organization.NS_TLS=spade.Organization-module.html#NS_TLS,Variable spade.Organization_new.NS_TLS=spade.Organization_new-module.html#NS_TLS,Variable spade.Unit.NS_TLS=spade.Unit-module.html#NS_TLS,Variable spade.Unit_new.NS_TLS=spade.Unit_new-module.html#NS_TLS,Variable spade.pubsub.NS_TLS=spade.pubsub-module.html#NS_TLS,Variable spade.socialnetwork.NS_TLS=spade.socialnetwork-module.html#NS_TLS,Variable spade.xmpp.NS_TLS=spade.xmpp-module.html#NS_TLS,Variable spade.xmpp.auth.NS_TLS=spade.xmpp.auth-module.html#NS_TLS,Variable spade.xmpp.browser.NS_TLS=spade.xmpp.browser-module.html#NS_TLS,Variable spade.xmpp.commands.NS_TLS=spade.xmpp.commands-module.html#NS_TLS,Variable spade.xmpp.dispatcher.NS_TLS=spade.xmpp.dispatcher-module.html#NS_TLS,Variable spade.xmpp.features.NS_TLS=spade.xmpp.features-module.html#NS_TLS,Variable spade.xmpp.filetransfer.NS_TLS=spade.xmpp.filetransfer-module.html#NS_TLS,Variable spade.xmpp.protocol.NS_TLS=spade.xmpp.protocol-module.html#NS_TLS,Variable spade.xmpp.roster.NS_TLS=spade.xmpp.roster-module.html#NS_TLS,Variable spade.xmpp.transports.NS_TLS=spade.xmpp.transports-module.html#NS_TLS,Variable spade.xmppd.modules.config.NS_TLS=spade.xmppd.modules.config-module.html#NS_TLS,Variable spade.xmppd.modules.db_fake.NS_TLS=spade.xmppd.modules.db_fake-module.html#NS_TLS,Variable spade.xmppd.modules.dialback.NS_TLS=spade.xmppd.modules.dialback-module.html#NS_TLS,Variable spade.xmppd.modules.jep0077.NS_TLS=spade.xmppd.modules.jep0077-module.html#NS_TLS,Variable spade.xmppd.modules.jep0078.NS_TLS=spade.xmppd.modules.jep0078-module.html#NS_TLS,Variable spade.xmppd.modules.message.NS_TLS=spade.xmppd.modules.message-module.html#NS_TLS,Variable spade.xmppd.modules.muc.NS_TLS=spade.xmppd.modules.muc-module.html#NS_TLS,Variable spade.xmppd.modules.oob.NS_TLS=spade.xmppd.modules.oob-module.html#NS_TLS,Variable spade.xmppd.modules.pubsub.NS_TLS=spade.xmppd.modules.pubsub-module.html#NS_TLS,Variable spade.xmppd.modules.roster.NS_TLS=spade.xmppd.modules.roster-module.html#NS_TLS,Variable spade.xmppd.modules.router.NS_TLS=spade.xmppd.modules.router-module.html#NS_TLS,Variable spade.xmppd.modules.stream.NS_TLS=spade.xmppd.modules.stream-module.html#NS_TLS,Variable spade.xmppd.modules.webadmin.NS_TLS=spade.xmppd.modules.webadmin-module.html#NS_TLS,Variable spade.xmppd.modules.wq.NS_TLS=spade.xmppd.modules.wq-module.html#NS_TLS,Variable spade.xmppd.xmppd.NS_TLS=spade.xmppd.xmppd-module.html#NS_TLS"><a title="spade.Agent.NS_TLS
spade.MTP.NS_TLS
spade.Organization.NS_TLS
spade.Organization_new.NS_TLS
spade.Unit.NS_TLS
spade.Unit_new.NS_TLS
spade.pubsub.NS_TLS
spade.socialnetwork.NS_TLS
spade.xmpp.NS_TLS
spade.xmpp.auth.NS_TLS
spade.xmpp.browser.NS_TLS
spade.xmpp.commands.NS_TLS
spade.xmpp.dispatcher.NS_TLS
spade.xmpp.features.NS_TLS
spade.xmpp.filetransfer.NS_TLS
spade.xmpp.protocol.NS_TLS
spade.xmpp.roster.NS_TLS
spade.xmpp.transports.NS_TLS
spade.xmppd.modules.config.NS_TLS
spade.xmppd.modules.db_fake.NS_TLS
spade.xmppd.modules.dialback.NS_TLS
spade.xmppd.modules.jep0077.NS_TLS
spade.xmppd.modules.jep0078.NS_TLS
spade.xmppd.modules.message.NS_TLS
spade.xmppd.modules.muc.NS_TLS
spade.xmppd.modules.oob.NS_TLS
spade.xmppd.modules.pubsub.NS_TLS
spade.xmppd.modules.roster.NS_TLS
spade.xmppd.modules.router.NS_TLS
spade.xmppd.modules.stream.NS_TLS
spade.xmppd.modules.webadmin.NS_TLS
spade.xmppd.modules.wq.NS_TLS
spade.xmppd.xmppd.NS_TLS" class="py-name" href="#" onclick="return doclink('link-118', 'NS_TLS', 'link-118');">NS_TLS</a></tt><tt class="py-op">,</tt><tt id="link-119" class="py-name" targets="Variable spade.Agent.NS_SASL=spade.Agent-module.html#NS_SASL,Variable spade.MTP.NS_SASL=spade.MTP-module.html#NS_SASL,Variable spade.Organization.NS_SASL=spade.Organization-module.html#NS_SASL,Variable spade.Organization_new.NS_SASL=spade.Organization_new-module.html#NS_SASL,Variable spade.Unit.NS_SASL=spade.Unit-module.html#NS_SASL,Variable spade.Unit_new.NS_SASL=spade.Unit_new-module.html#NS_SASL,Variable spade.pubsub.NS_SASL=spade.pubsub-module.html#NS_SASL,Variable spade.socialnetwork.NS_SASL=spade.socialnetwork-module.html#NS_SASL,Variable spade.xmpp.NS_SASL=spade.xmpp-module.html#NS_SASL,Variable spade.xmpp.auth.NS_SASL=spade.xmpp.auth-module.html#NS_SASL,Variable spade.xmpp.browser.NS_SASL=spade.xmpp.browser-module.html#NS_SASL,Variable spade.xmpp.commands.NS_SASL=spade.xmpp.commands-module.html#NS_SASL,Variable spade.xmpp.dispatcher.NS_SASL=spade.xmpp.dispatcher-module.html#NS_SASL,Variable spade.xmpp.features.NS_SASL=spade.xmpp.features-module.html#NS_SASL,Variable spade.xmpp.filetransfer.NS_SASL=spade.xmpp.filetransfer-module.html#NS_SASL,Variable spade.xmpp.protocol.NS_SASL=spade.xmpp.protocol-module.html#NS_SASL,Variable spade.xmpp.roster.NS_SASL=spade.xmpp.roster-module.html#NS_SASL,Variable spade.xmpp.transports.NS_SASL=spade.xmpp.transports-module.html#NS_SASL,Variable spade.xmppd.modules.config.NS_SASL=spade.xmppd.modules.config-module.html#NS_SASL,Variable spade.xmppd.modules.db_fake.NS_SASL=spade.xmppd.modules.db_fake-module.html#NS_SASL,Variable spade.xmppd.modules.dialback.NS_SASL=spade.xmppd.modules.dialback-module.html#NS_SASL,Variable spade.xmppd.modules.jep0077.NS_SASL=spade.xmppd.modules.jep0077-module.html#NS_SASL,Variable spade.xmppd.modules.jep0078.NS_SASL=spade.xmppd.modules.jep0078-module.html#NS_SASL,Variable spade.xmppd.modules.message.NS_SASL=spade.xmppd.modules.message-module.html#NS_SASL,Variable spade.xmppd.modules.muc.NS_SASL=spade.xmppd.modules.muc-module.html#NS_SASL,Variable spade.xmppd.modules.oob.NS_SASL=spade.xmppd.modules.oob-module.html#NS_SASL,Variable spade.xmppd.modules.pubsub.NS_SASL=spade.xmppd.modules.pubsub-module.html#NS_SASL,Variable spade.xmppd.modules.roster.NS_SASL=spade.xmppd.modules.roster-module.html#NS_SASL,Variable spade.xmppd.modules.router.NS_SASL=spade.xmppd.modules.router-module.html#NS_SASL,Variable spade.xmppd.modules.stream.NS_SASL=spade.xmppd.modules.stream-module.html#NS_SASL,Variable spade.xmppd.modules.webadmin.NS_SASL=spade.xmppd.modules.webadmin-module.html#NS_SASL,Variable spade.xmppd.modules.wq.NS_SASL=spade.xmppd.modules.wq-module.html#NS_SASL,Variable spade.xmppd.xmppd.NS_SASL=spade.xmppd.xmppd-module.html#NS_SASL"><a title="spade.Agent.NS_SASL
spade.MTP.NS_SASL
spade.Organization.NS_SASL
spade.Organization_new.NS_SASL
spade.Unit.NS_SASL
spade.Unit_new.NS_SASL
spade.pubsub.NS_SASL
spade.socialnetwork.NS_SASL
spade.xmpp.NS_SASL
spade.xmpp.auth.NS_SASL
spade.xmpp.browser.NS_SASL
spade.xmpp.commands.NS_SASL
spade.xmpp.dispatcher.NS_SASL
spade.xmpp.features.NS_SASL
spade.xmpp.filetransfer.NS_SASL
spade.xmpp.protocol.NS_SASL
spade.xmpp.roster.NS_SASL
spade.xmpp.transports.NS_SASL
spade.xmppd.modules.config.NS_SASL
spade.xmppd.modules.db_fake.NS_SASL
spade.xmppd.modules.dialback.NS_SASL
spade.xmppd.modules.jep0077.NS_SASL
spade.xmppd.modules.jep0078.NS_SASL
spade.xmppd.modules.message.NS_SASL
spade.xmppd.modules.muc.NS_SASL
spade.xmppd.modules.oob.NS_SASL
spade.xmppd.modules.pubsub.NS_SASL
spade.xmppd.modules.roster.NS_SASL
spade.xmppd.modules.router.NS_SASL
spade.xmppd.modules.stream.NS_SASL
spade.xmppd.modules.webadmin.NS_SASL
spade.xmppd.modules.wq.NS_SASL
spade.xmppd.xmppd.NS_SASL" class="py-name" href="#" onclick="return doclink('link-119', 'NS_SASL', 'link-119');">NS_SASL</a></tt><tt class="py-op">,</tt><tt id="link-120" class="py-name" targets="Variable spade.Agent.NS_BIND=spade.Agent-module.html#NS_BIND,Variable spade.MTP.NS_BIND=spade.MTP-module.html#NS_BIND,Variable spade.Organization.NS_BIND=spade.Organization-module.html#NS_BIND,Variable spade.Organization_new.NS_BIND=spade.Organization_new-module.html#NS_BIND,Variable spade.Unit.NS_BIND=spade.Unit-module.html#NS_BIND,Variable spade.Unit_new.NS_BIND=spade.Unit_new-module.html#NS_BIND,Variable spade.pubsub.NS_BIND=spade.pubsub-module.html#NS_BIND,Variable spade.socialnetwork.NS_BIND=spade.socialnetwork-module.html#NS_BIND,Variable spade.xmpp.NS_BIND=spade.xmpp-module.html#NS_BIND,Variable spade.xmpp.auth.NS_BIND=spade.xmpp.auth-module.html#NS_BIND,Variable spade.xmpp.browser.NS_BIND=spade.xmpp.browser-module.html#NS_BIND,Variable spade.xmpp.commands.NS_BIND=spade.xmpp.commands-module.html#NS_BIND,Variable spade.xmpp.dispatcher.NS_BIND=spade.xmpp.dispatcher-module.html#NS_BIND,Variable spade.xmpp.features.NS_BIND=spade.xmpp.features-module.html#NS_BIND,Variable spade.xmpp.filetransfer.NS_BIND=spade.xmpp.filetransfer-module.html#NS_BIND,Variable spade.xmpp.protocol.NS_BIND=spade.xmpp.protocol-module.html#NS_BIND,Variable spade.xmpp.roster.NS_BIND=spade.xmpp.roster-module.html#NS_BIND,Variable spade.xmpp.transports.NS_BIND=spade.xmpp.transports-module.html#NS_BIND,Variable spade.xmppd.modules.config.NS_BIND=spade.xmppd.modules.config-module.html#NS_BIND,Variable spade.xmppd.modules.db_fake.NS_BIND=spade.xmppd.modules.db_fake-module.html#NS_BIND,Variable spade.xmppd.modules.dialback.NS_BIND=spade.xmppd.modules.dialback-module.html#NS_BIND,Variable spade.xmppd.modules.jep0077.NS_BIND=spade.xmppd.modules.jep0077-module.html#NS_BIND,Variable spade.xmppd.modules.jep0078.NS_BIND=spade.xmppd.modules.jep0078-module.html#NS_BIND,Variable spade.xmppd.modules.message.NS_BIND=spade.xmppd.modules.message-module.html#NS_BIND,Variable spade.xmppd.modules.muc.NS_BIND=spade.xmppd.modules.muc-module.html#NS_BIND,Variable spade.xmppd.modules.oob.NS_BIND=spade.xmppd.modules.oob-module.html#NS_BIND,Variable spade.xmppd.modules.pubsub.NS_BIND=spade.xmppd.modules.pubsub-module.html#NS_BIND,Variable spade.xmppd.modules.roster.NS_BIND=spade.xmppd.modules.roster-module.html#NS_BIND,Variable spade.xmppd.modules.router.NS_BIND=spade.xmppd.modules.router-module.html#NS_BIND,Variable spade.xmppd.modules.stream.NS_BIND=spade.xmppd.modules.stream-module.html#NS_BIND,Variable spade.xmppd.modules.webadmin.NS_BIND=spade.xmppd.modules.webadmin-module.html#NS_BIND,Variable spade.xmppd.modules.wq.NS_BIND=spade.xmppd.modules.wq-module.html#NS_BIND,Variable spade.xmppd.xmppd.NS_BIND=spade.xmppd.xmppd-module.html#NS_BIND"><a title="spade.Agent.NS_BIND
spade.MTP.NS_BIND
spade.Organization.NS_BIND
spade.Organization_new.NS_BIND
spade.Unit.NS_BIND
spade.Unit_new.NS_BIND
spade.pubsub.NS_BIND
spade.socialnetwork.NS_BIND
spade.xmpp.NS_BIND
spade.xmpp.auth.NS_BIND
spade.xmpp.browser.NS_BIND
spade.xmpp.commands.NS_BIND
spade.xmpp.dispatcher.NS_BIND
spade.xmpp.features.NS_BIND
spade.xmpp.filetransfer.NS_BIND
spade.xmpp.protocol.NS_BIND
spade.xmpp.roster.NS_BIND
spade.xmpp.transports.NS_BIND
spade.xmppd.modules.config.NS_BIND
spade.xmppd.modules.db_fake.NS_BIND
spade.xmppd.modules.dialback.NS_BIND
spade.xmppd.modules.jep0077.NS_BIND
spade.xmppd.modules.jep0078.NS_BIND
spade.xmppd.modules.message.NS_BIND
spade.xmppd.modules.muc.NS_BIND
spade.xmppd.modules.oob.NS_BIND
spade.xmppd.modules.pubsub.NS_BIND
spade.xmppd.modules.roster.NS_BIND
spade.xmppd.modules.router.NS_BIND
spade.xmppd.modules.stream.NS_BIND
spade.xmppd.modules.webadmin.NS_BIND
spade.xmppd.modules.wq.NS_BIND
spade.xmppd.xmppd.NS_BIND" class="py-name" href="#" onclick="return doclink('link-120', 'NS_BIND', 'link-120');">NS_BIND</a></tt><tt class="py-op">,</tt><tt id="link-121" class="py-name" targets="Variable spade.Agent.NS_SESSION=spade.Agent-module.html#NS_SESSION,Variable spade.MTP.NS_SESSION=spade.MTP-module.html#NS_SESSION,Variable spade.Organization.NS_SESSION=spade.Organization-module.html#NS_SESSION,Variable spade.Organization_new.NS_SESSION=spade.Organization_new-module.html#NS_SESSION,Variable spade.Unit.NS_SESSION=spade.Unit-module.html#NS_SESSION,Variable spade.Unit_new.NS_SESSION=spade.Unit_new-module.html#NS_SESSION,Variable spade.pubsub.NS_SESSION=spade.pubsub-module.html#NS_SESSION,Variable spade.socialnetwork.NS_SESSION=spade.socialnetwork-module.html#NS_SESSION,Variable spade.xmpp.NS_SESSION=spade.xmpp-module.html#NS_SESSION,Variable spade.xmpp.auth.NS_SESSION=spade.xmpp.auth-module.html#NS_SESSION,Variable spade.xmpp.browser.NS_SESSION=spade.xmpp.browser-module.html#NS_SESSION,Variable spade.xmpp.commands.NS_SESSION=spade.xmpp.commands-module.html#NS_SESSION,Variable spade.xmpp.dispatcher.NS_SESSION=spade.xmpp.dispatcher-module.html#NS_SESSION,Variable spade.xmpp.features.NS_SESSION=spade.xmpp.features-module.html#NS_SESSION,Variable spade.xmpp.filetransfer.NS_SESSION=spade.xmpp.filetransfer-module.html#NS_SESSION,Variable spade.xmpp.protocol.NS_SESSION=spade.xmpp.protocol-module.html#NS_SESSION,Variable spade.xmpp.roster.NS_SESSION=spade.xmpp.roster-module.html#NS_SESSION,Variable spade.xmpp.transports.NS_SESSION=spade.xmpp.transports-module.html#NS_SESSION,Variable spade.xmppd.modules.config.NS_SESSION=spade.xmppd.modules.config-module.html#NS_SESSION,Variable spade.xmppd.modules.db_fake.NS_SESSION=spade.xmppd.modules.db_fake-module.html#NS_SESSION,Variable spade.xmppd.modules.dialback.NS_SESSION=spade.xmppd.modules.dialback-module.html#NS_SESSION,Variable spade.xmppd.modules.jep0077.NS_SESSION=spade.xmppd.modules.jep0077-module.html#NS_SESSION,Variable spade.xmppd.modules.jep0078.NS_SESSION=spade.xmppd.modules.jep0078-module.html#NS_SESSION,Variable spade.xmppd.modules.message.NS_SESSION=spade.xmppd.modules.message-module.html#NS_SESSION,Variable spade.xmppd.modules.muc.NS_SESSION=spade.xmppd.modules.muc-module.html#NS_SESSION,Variable spade.xmppd.modules.oob.NS_SESSION=spade.xmppd.modules.oob-module.html#NS_SESSION,Variable spade.xmppd.modules.pubsub.NS_SESSION=spade.xmppd.modules.pubsub-module.html#NS_SESSION,Variable spade.xmppd.modules.roster.NS_SESSION=spade.xmppd.modules.roster-module.html#NS_SESSION,Variable spade.xmppd.modules.router.NS_SESSION=spade.xmppd.modules.router-module.html#NS_SESSION,Variable spade.xmppd.modules.stream.NS_SESSION=spade.xmppd.modules.stream-module.html#NS_SESSION,Variable spade.xmppd.modules.webadmin.NS_SESSION=spade.xmppd.modules.webadmin-module.html#NS_SESSION,Variable spade.xmppd.modules.wq.NS_SESSION=spade.xmppd.modules.wq-module.html#NS_SESSION,Variable spade.xmppd.xmppd.NS_SESSION=spade.xmppd.xmppd-module.html#NS_SESSION"><a title="spade.Agent.NS_SESSION
spade.MTP.NS_SESSION
spade.Organization.NS_SESSION
spade.Organization_new.NS_SESSION
spade.Unit.NS_SESSION
spade.Unit_new.NS_SESSION
spade.pubsub.NS_SESSION
spade.socialnetwork.NS_SESSION
spade.xmpp.NS_SESSION
spade.xmpp.auth.NS_SESSION
spade.xmpp.browser.NS_SESSION
spade.xmpp.commands.NS_SESSION
spade.xmpp.dispatcher.NS_SESSION
spade.xmpp.features.NS_SESSION
spade.xmpp.filetransfer.NS_SESSION
spade.xmpp.protocol.NS_SESSION
spade.xmpp.roster.NS_SESSION
spade.xmpp.transports.NS_SESSION
spade.xmppd.modules.config.NS_SESSION
spade.xmppd.modules.db_fake.NS_SESSION
spade.xmppd.modules.dialback.NS_SESSION
spade.xmppd.modules.jep0077.NS_SESSION
spade.xmppd.modules.jep0078.NS_SESSION
spade.xmppd.modules.message.NS_SESSION
spade.xmppd.modules.muc.NS_SESSION
spade.xmppd.modules.oob.NS_SESSION
spade.xmppd.modules.pubsub.NS_SESSION
spade.xmppd.modules.roster.NS_SESSION
spade.xmppd.modules.router.NS_SESSION
spade.xmppd.modules.stream.NS_SESSION
spade.xmppd.modules.webadmin.NS_SESSION
spade.xmppd.modules.wq.NS_SESSION
spade.xmppd.xmppd.NS_SESSION" class="py-name" href="#" onclick="return doclink('link-121', 'NS_SESSION', 'link-121');">NS_SESSION</a></tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L289"></a><tt class="py-lineno"> 289</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-122" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-122', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">server</tt><tt class="py-op">.</tt><tt id="link-123" class="py-name" targets="Module spade.xmpp.features=spade.xmpp.features-module.html"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-123', 'features', 'link-123');">features</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">.</tt><tt id="link-124" class="py-name" targets="Method spade.pyparsing.ParseExpression.append()=spade.pyparsing.ParseExpression-class.html#append"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-124', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt id="link-125" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-125', 'feature', 'link-117');">feature</a></tt><tt class="py-op">)</tt> </tt>
<a name="L290"></a><tt class="py-lineno"> 290</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-126" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-126', 'features', 'link-123');">features</a></tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L291"></a><tt class="py-lineno"> 291</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">feature_in_process</tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L292"></a><tt class="py-lineno"> 292</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">slave_session</tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L293"></a><tt class="py-lineno"> 293</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-127" class="py-name" targets="Method spade.xmpp.session.Session.StartStream()=spade.xmpp.session.Session-class.html#StartStream,Method spade.xmppd.xmppd.Session.StartStream()=spade.xmppd.xmppd.Session-class.html#StartStream"><a title="spade.xmpp.session.Session.StartStream
spade.xmppd.xmppd.Session.StartStream" class="py-name" href="#" onclick="return doclink('link-127', 'StartStream', 'link-127');">StartStream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L294"></a><tt class="py-lineno"> 294</tt>  <tt class="py-line"> </tt>
<a name="Session.StartStream"></a><div id="Session.StartStream-def"><a name="L295"></a><tt class="py-lineno"> 295</tt> <a class="py-toggle" href="#" id="Session.StartStream-toggle" onclick="return toggle('Session.StartStream');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#StartStream">StartStream</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.StartStream-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.StartStream-expanded"><a name="L296"></a><tt class="py-lineno"> 296</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">=</tt><tt id="link-128" class="py-name"><a title="spade.xmpp.session.STREAM__NOT_OPENED
spade.xmppd.modules.stream.STREAM__NOT_OPENED
spade.xmppd.xmppd.STREAM__NOT_OPENED" class="py-name" href="#" onclick="return doclink('link-128', 'STREAM__NOT_OPENED', 'link-6');">STREAM__NOT_OPENED</a></tt> </tt>
<a name="L297"></a><tt class="py-lineno"> 297</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-129" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-129', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">=</tt><tt id="link-130" class="py-name" targets="Module spade.xmpp.simplexml=spade.xmpp.simplexml-module.html"><a title="spade.xmpp.simplexml" class="py-name" href="#" onclick="return doclink('link-130', 'simplexml', 'link-130');">simplexml</a></tt><tt class="py-op">.</tt><tt id="link-131" class="py-name" targets="Class spade.xmpp.simplexml.NodeBuilder=spade.xmpp.simplexml.NodeBuilder-class.html"><a title="spade.xmpp.simplexml.NodeBuilder" class="py-name" href="#" onclick="return doclink('link-131', 'NodeBuilder', 'link-131');">NodeBuilder</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L298"></a><tt class="py-lineno"> 298</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-132" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-132', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt class="py-name">_dispatch_depth</tt><tt class="py-op">=</tt><tt class="py-number">2</tt> </tt>
<a name="L299"></a><tt class="py-lineno"> 299</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-133" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-133', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-134" class="py-name" targets="Method spade.MTP.MTP.dispatch()=spade.MTP.MTP-class.html#dispatch,Method spade.xmpp.dispatcher.Dispatcher.dispatch()=spade.xmpp.dispatcher.Dispatcher-class.html#dispatch,Method spade.xmpp.simplexml.NodeBuilder.dispatch()=spade.xmpp.simplexml.NodeBuilder-class.html#dispatch,Method spade.xmppd.modules.muc.MUC.dispatch()=spade.xmppd.modules.muc.MUC-class.html#dispatch,Method spade.xmppd.modules.muc.Room.dispatch()=spade.xmppd.modules.muc.Room-class.html#dispatch,Method spade.xmppd.modules.wq.Group.dispatch()=spade.xmppd.modules.wq.Group-class.html#dispatch,Method spade.xmppd.modules.wq.WQ.dispatch()=spade.xmppd.modules.wq.WQ-class.html#dispatch,Method spade.xmppd.xmppd.Session.dispatch()=spade.xmppd.xmppd.Session-class.html#dispatch"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-134', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-135" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-135', 'dispatch', 'link-134');">dispatch</a></tt> </tt>
<a name="L300"></a><tt class="py-lineno"> 300</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">Parse</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-136" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-136', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt class="py-name">Parse</tt> </tt>
<a name="L301"></a><tt class="py-lineno"> 301</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-137" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-137', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-138" class="py-name" targets="Method spade.xmpp.simplexml.NodeBuilder.stream_footer_received()=spade.xmpp.simplexml.NodeBuilder-class.html#stream_footer_received"><a title="spade.xmpp.simplexml.NodeBuilder.stream_footer_received" class="py-name" href="#" onclick="return doclink('link-138', 'stream_footer_received', 'link-138');">stream_footer_received</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-139" class="py-name" targets="Method spade.xmpp.session.Session._stream_close()=spade.xmpp.session.Session-class.html#_stream_close,Method spade.xmppd.xmppd.Session._stream_close()=spade.xmppd.xmppd.Session-class.html#_stream_close"><a title="spade.xmpp.session.Session._stream_close
spade.xmppd.xmppd.Session._stream_close" class="py-name" href="#" onclick="return doclink('link-139', '_stream_close', 'link-139');">_stream_close</a></tt> </tt>
<a name="L302"></a><tt class="py-lineno"> 302</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">==</tt><tt class="py-string">'client'</tt><tt class="py-op">:</tt> </tt>
<a name="L303"></a><tt class="py-lineno"> 303</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-140" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-140', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-141" class="py-name" targets="Method spade.xmpp.simplexml.NodeBuilder.stream_header_received()=spade.xmpp.simplexml.NodeBuilder-class.html#stream_header_received"><a title="spade.xmpp.simplexml.NodeBuilder.stream_header_received" class="py-name" href="#" onclick="return doclink('link-141', 'stream_header_received', 'link-141');">stream_header_received</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-142" class="py-name" targets="Method spade.xmpp.session.Session._catch_stream_id()=spade.xmpp.session.Session-class.html#_catch_stream_id,Method spade.xmppd.xmppd.Session._catch_stream_id()=spade.xmppd.xmppd.Session-class.html#_catch_stream_id"><a title="spade.xmpp.session.Session._catch_stream_id
spade.xmppd.xmppd.Session._catch_stream_id" class="py-name" href="#" onclick="return doclink('link-142', '_catch_stream_id', 'link-142');">_catch_stream_id</a></tt> </tt>
<a name="L304"></a><tt class="py-lineno"> 304</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-143" class="py-name" targets="Method spade.xmpp.session.Session._stream_open()=spade.xmpp.session.Session-class.html#_stream_open,Method spade.xmppd.xmppd.Session._stream_open()=spade.xmppd.xmppd.Session-class.html#_stream_open"><a title="spade.xmpp.session.Session._stream_open
spade.xmppd.xmppd.Session._stream_open" class="py-name" href="#" onclick="return doclink('link-143', '_stream_open', 'link-143');">_stream_open</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L305"></a><tt class="py-lineno"> 305</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L306"></a><tt class="py-lineno"> 306</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-144" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-144', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-145" class="py-name"><a title="spade.xmpp.simplexml.NodeBuilder.stream_header_received" class="py-name" href="#" onclick="return doclink('link-145', 'stream_header_received', 'link-141');">stream_header_received</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-146" class="py-name"><a title="spade.xmpp.session.Session._stream_open
spade.xmppd.xmppd.Session._stream_open" class="py-name" href="#" onclick="return doclink('link-146', '_stream_open', 'link-143');">_stream_open</a></tt> </tt>
</div><a name="L307"></a><tt class="py-lineno"> 307</tt>  <tt class="py-line"> </tt>
<a name="Session.receive"></a><div id="Session.receive-def"><a name="L308"></a><tt class="py-lineno"> 308</tt> <a class="py-toggle" href="#" id="Session.receive-toggle" onclick="return toggle('Session.receive');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#receive">receive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.receive-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.receive-expanded"><a name="L309"></a><tt class="py-lineno"> 309</tt>  <tt class="py-line">        <tt class="py-docstring">"""Reads all pending incoming data. Raises IOError on disconnect."""</tt> </tt>
<a name="L310"></a><tt class="py-lineno"> 310</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L311"></a><tt class="py-lineno"> 311</tt>  <tt class="py-line">                <tt class="py-name">received</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_recv</tt><tt class="py-op">(</tt><tt class="py-number">10240</tt><tt class="py-op">)</tt> </tt>
<a name="L312"></a><tt class="py-lineno"> 312</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L313"></a><tt class="py-lineno"> 313</tt>  <tt class="py-line">                <tt class="py-name">received</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L314"></a><tt class="py-lineno"> 314</tt>  <tt class="py-line"> </tt>
<a name="L315"></a><tt class="py-lineno"> 315</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">received</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-comment"># length of 0 means disconnect</tt> </tt>
<a name="L316"></a><tt class="py-lineno"> 316</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-147" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-147', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-op">`</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-148" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-148', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">`</tt><tt class="py-op">+</tt><tt class="py-string">' '</tt><tt class="py-op">+</tt><tt class="py-name">received</tt><tt class="py-op">,</tt><tt class="py-string">'got'</tt><tt class="py-op">)</tt> </tt>
<a name="L317"></a><tt class="py-lineno"> 317</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">last_seen</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L318"></a><tt class="py-lineno"> 318</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L319"></a><tt class="py-lineno"> 319</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-149" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-149', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SESSION_RECEIVE_ERROR</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L320"></a><tt class="py-lineno"> 320</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-150" class="py-name" targets="Method spade.xmpp.session.Session.set_socket_state()=spade.xmpp.session.Session-class.html#set_socket_state,Method spade.xmppd.xmppd.Session.set_socket_state()=spade.xmppd.xmppd.Session-class.html#set_socket_state"><a title="spade.xmpp.session.Session.set_socket_state
spade.xmppd.xmppd.Session.set_socket_state" class="py-name" href="#" onclick="return doclink('link-150', 'set_socket_state', 'link-150');">set_socket_state</a></tt><tt class="py-op">(</tt><tt id="link-151" class="py-name"><a title="spade.xmpp.session.SOCKET_DEAD
spade.xmppd.modules.stream.SOCKET_DEAD
spade.xmppd.xmppd.SOCKET_DEAD" class="py-name" href="#" onclick="return doclink('link-151', 'SOCKET_DEAD', 'link-5');">SOCKET_DEAD</a></tt><tt class="py-op">)</tt> </tt>
<a name="L321"></a><tt class="py-lineno"> 321</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">IOError</tt><tt class="py-op">(</tt><tt class="py-string">"Peer disconnected"</tt><tt class="py-op">)</tt> </tt>
<a name="L322"></a><tt class="py-lineno"> 322</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">received</tt> </tt>
</div><a name="L323"></a><tt class="py-lineno"> 323</tt>  <tt class="py-line"> </tt>
<a name="Session.send"></a><div id="Session.send-def"><a name="L324"></a><tt class="py-lineno"> 324</tt> <a class="py-toggle" href="#" id="Session.send-toggle" onclick="return toggle('Session.send');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#send">send</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">chunk</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.send-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.send-expanded"><a name="L325"></a><tt class="py-lineno"> 325</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L326"></a><tt class="py-lineno"> 326</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">chunk</tt><tt class="py-op">,</tt><tt id="link-152" class="py-name" targets="Class spade.xmpp.simplexml.Node=spade.xmpp.simplexml.Node-class.html"><a title="spade.xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-152', 'Node', 'link-152');">Node</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">chunk</tt> <tt class="py-op">=</tt> <tt class="py-name">unicode</tt><tt class="py-op">(</tt><tt class="py-name">chunk</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-153" class="py-name" targets="Method spade.RDF0Parser.RDF0Parser.encode()=spade.RDF0Parser.RDF0Parser-class.html#encode"><a title="spade.RDF0Parser.RDF0Parser.encode" class="py-name" href="#" onclick="return doclink('link-153', 'encode', 'link-153');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt> </tt>
<a name="L327"></a><tt class="py-lineno"> 327</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">chunk</tt><tt class="py-op">)</tt><tt class="py-op">==</tt><tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-string">u''</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">chunk</tt> <tt class="py-op">=</tt> <tt class="py-name">chunk</tt><tt class="py-op">.</tt><tt id="link-154" class="py-name"><a title="spade.RDF0Parser.RDF0Parser.encode" class="py-name" href="#" onclick="return doclink('link-154', 'encode', 'link-153');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt> </tt>
<a name="L328"></a><tt class="py-lineno"> 328</tt>  <tt class="py-line">            <tt class="py-comment">#self.enqueue(chunk)</tt> </tt>
<a name="L329"></a><tt class="py-lineno"> 329</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L330"></a><tt class="py-lineno"> 330</tt>  <tt class="py-line">            <tt class="py-keyword">pass</tt> </tt>
<a name="L331"></a><tt class="py-lineno"> 331</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-155" class="py-name" targets="Method spade.xmpp.session.Session.enqueue()=spade.xmpp.session.Session-class.html#enqueue,Method spade.xmppd.xmppd.Session.enqueue()=spade.xmppd.xmppd.Session-class.html#enqueue"><a title="spade.xmpp.session.Session.enqueue
spade.xmppd.xmppd.Session.enqueue" class="py-name" href="#" onclick="return doclink('link-155', 'enqueue', 'link-155');">enqueue</a></tt><tt class="py-op">(</tt><tt class="py-name">chunk</tt><tt class="py-op">)</tt> </tt>
</div><a name="L332"></a><tt class="py-lineno"> 332</tt>  <tt class="py-line"> </tt>
<a name="Session.enqueue"></a><div id="Session.enqueue-def"><a name="L333"></a><tt class="py-lineno"> 333</tt> <a class="py-toggle" href="#" id="Session.enqueue-toggle" onclick="return toggle('Session.enqueue');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#enqueue">enqueue</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">stanza</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.enqueue-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.enqueue-expanded"><a name="L334"></a><tt class="py-lineno"> 334</tt>  <tt class="py-line">        <tt class="py-docstring">""" Takes Protocol instance as argument. """</tt> </tt>
<a name="L335"></a><tt class="py-lineno"> 335</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_lock</tt><tt class="py-op">.</tt><tt class="py-name">acquire</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L336"></a><tt class="py-lineno"> 336</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L337"></a><tt class="py-lineno"> 337</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">num_messages</tt> <tt class="py-op">+=</tt> <tt class="py-number">1</tt> </tt>
<a name="L338"></a><tt class="py-lineno"> 338</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">,</tt><tt id="link-156" class="py-name" targets="Class spade.xmpp.protocol.Protocol=spade.xmpp.protocol.Protocol-class.html"><a title="spade.xmpp.protocol.Protocol" class="py-name" href="#" onclick="return doclink('link-156', 'Protocol', 'link-156');">Protocol</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L339"></a><tt class="py-lineno"> 339</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stanza_queue</tt><tt class="py-op">.</tt><tt id="link-157" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-157', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">)</tt> </tt>
<a name="L340"></a><tt class="py-lineno"> 340</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">+=</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">)</tt> </tt>
<a name="L341"></a><tt class="py-lineno"> 341</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socket_state</tt><tt class="py-op">&gt;=</tt><tt id="link-158" class="py-name"><a title="spade.xmpp.session.SOCKET_ALIVE
spade.xmppd.modules.stream.SOCKET_ALIVE
spade.xmppd.xmppd.SOCKET_ALIVE" class="py-name" href="#" onclick="return doclink('link-158', 'SOCKET_ALIVE', 'link-4');">SOCKET_ALIVE</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-159" class="py-name" targets="Method spade.xmpp.session.Session.push_queue()=spade.xmpp.session.Session-class.html#push_queue,Method spade.xmppd.xmppd.Session.push_queue()=spade.xmppd.xmppd.Session-class.html#push_queue"><a title="spade.xmpp.session.Session.push_queue
spade.xmppd.xmppd.Session.push_queue" class="py-name" href="#" onclick="return doclink('link-159', 'push_queue', 'link-159');">push_queue</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L342"></a><tt class="py-lineno"> 342</tt>  <tt class="py-line">        <tt class="py-keyword">finally</tt><tt class="py-op">:</tt> </tt>
<a name="L343"></a><tt class="py-lineno"> 343</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_lock</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L344"></a><tt class="py-lineno"> 344</tt>  <tt class="py-line"> </tt>
<a name="Session.push_queue"></a><div id="Session.push_queue-def"><a name="L345"></a><tt class="py-lineno"> 345</tt> <a class="py-toggle" href="#" id="Session.push_queue-toggle" onclick="return toggle('Session.push_queue');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#push_queue">push_queue</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">failreason</tt><tt class="py-op">=</tt><tt id="link-160" class="py-name" targets="Variable spade.Agent.ERR_RECIPIENT_UNAVAILABLE=spade.Agent-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.MTP.ERR_RECIPIENT_UNAVAILABLE=spade.MTP-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.Organization.ERR_RECIPIENT_UNAVAILABLE=spade.Organization-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.Organization_new.ERR_RECIPIENT_UNAVAILABLE=spade.Organization_new-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.Unit.ERR_RECIPIENT_UNAVAILABLE=spade.Unit-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.Unit_new.ERR_RECIPIENT_UNAVAILABLE=spade.Unit_new-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.pubsub.ERR_RECIPIENT_UNAVAILABLE=spade.pubsub-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.socialnetwork.ERR_RECIPIENT_UNAVAILABLE=spade.socialnetwork-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.auth.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.auth-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.browser.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.browser-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.commands.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.commands-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.dispatcher.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.dispatcher-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.features.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.features-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.filetransfer.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.filetransfer-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.protocol.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.protocol-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.roster.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.roster-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmpp.transports.ERR_RECIPIENT_UNAVAILABLE=spade.xmpp.transports-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.config.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.config-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.db_fake.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.db_fake-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.dialback.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.dialback-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.jep0077.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.jep0077-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.jep0078.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.jep0078-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.message.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.message-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.muc.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.muc-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.oob.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.oob-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.pubsub.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.pubsub-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.roster.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.roster-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.router.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.router-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.stream.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.stream-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.webadmin.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.webadmin-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.modules.wq.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.modules.wq-module.html#ERR_RECIPIENT_UNAVAILABLE,Variable spade.xmppd.xmppd.ERR_RECIPIENT_UNAVAILABLE=spade.xmppd.xmppd-module.html#ERR_RECIPIENT_UNAVAILABLE"><a title="spade.Agent.ERR_RECIPIENT_UNAVAILABLE
spade.MTP.ERR_RECIPIENT_UNAVAILABLE
spade.Organization.ERR_RECIPIENT_UNAVAILABLE
spade.Organization_new.ERR_RECIPIENT_UNAVAILABLE
spade.Unit.ERR_RECIPIENT_UNAVAILABLE
spade.Unit_new.ERR_RECIPIENT_UNAVAILABLE
spade.pubsub.ERR_RECIPIENT_UNAVAILABLE
spade.socialnetwork.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.auth.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.browser.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.commands.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.dispatcher.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.features.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.filetransfer.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.protocol.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.roster.ERR_RECIPIENT_UNAVAILABLE
spade.xmpp.transports.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.config.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.db_fake.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.dialback.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.jep0077.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.jep0078.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.message.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.muc.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.oob.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.pubsub.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.roster.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.router.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.stream.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.webadmin.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.modules.wq.ERR_RECIPIENT_UNAVAILABLE
spade.xmppd.xmppd.ERR_RECIPIENT_UNAVAILABLE" class="py-name" href="#" onclick="return doclink('link-160', 'ERR_RECIPIENT_UNAVAILABLE', 'link-160');">ERR_RECIPIENT_UNAVAILABLE</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.push_queue-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.push_queue-expanded"><a name="L346"></a><tt class="py-lineno"> 346</tt>  <tt class="py-line"> </tt>
<a name="L347"></a><tt class="py-lineno"> 347</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">&gt;=</tt><tt id="link-161" class="py-name"><a title="spade.xmpp.session.STREAM__CLOSED
spade.xmppd.modules.stream.STREAM__CLOSED
spade.xmppd.xmppd.STREAM__CLOSED" class="py-name" href="#" onclick="return doclink('link-161', 'STREAM__CLOSED', 'link-9');">STREAM__CLOSED</a></tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socket_state</tt><tt class="py-op">&gt;=</tt><tt id="link-162" class="py-name"><a title="spade.xmpp.session.SOCKET_DEAD
spade.xmppd.modules.stream.SOCKET_DEAD
spade.xmppd.xmppd.SOCKET_DEAD" class="py-name" href="#" onclick="return doclink('link-162', 'SOCKET_DEAD', 'link-5');">SOCKET_DEAD</a></tt><tt class="py-op">:</tt> <tt class="py-comment"># the stream failed. Return all stanzas that are still waiting for delivery.</tt> </tt>
<a name="L348"></a><tt class="py-lineno"> 348</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-163" class="py-name" targets="Method spade.xmppd.xmppd.Server.deactivatesession()=spade.xmppd.xmppd.Server-class.html#deactivatesession"><a title="spade.xmppd.xmppd.Server.deactivatesession" class="py-name" href="#" onclick="return doclink('link-163', 'deactivatesession', 'link-163');">deactivatesession</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L349"></a><tt class="py-lineno"> 349</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">trusted</tt><tt class="py-op">=</tt><tt class="py-number">1</tt> </tt>
<a name="L350"></a><tt class="py-lineno"> 350</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">key</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">:</tt>                            <tt class="py-comment"># Not sure. May be I</tt> </tt>
<a name="L351"></a><tt class="py-lineno"> 351</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-164" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-164', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt id="link-165" class="py-name" targets="Class spade.xmpp.protocol.Error=spade.xmpp.protocol.Error-class.html"><a title="spade.xmpp.protocol.Error" class="py-name" href="#" onclick="return doclink('link-165', 'Error', 'link-165');">Error</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_queue_map</tt><tt class="py-op">[</tt><tt class="py-name">key</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">failreason</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-comment"># should simply re-dispatch it?</tt> </tt>
<a name="L352"></a><tt class="py-lineno"> 352</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">stanza</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stanza_queue</tt><tt class="py-op">:</tt>                              <tt class="py-comment"># But such action can invoke</tt> </tt>
<a name="L353"></a><tt class="py-lineno"> 353</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-166" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-166', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt id="link-167" class="py-name"><a title="spade.xmpp.protocol.Error" class="py-name" href="#" onclick="return doclink('link-167', 'Error', 'link-165');">Error</a></tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">,</tt><tt class="py-name">failreason</tt><tt class="py-op">)</tt><tt class="py-op">)</tt>                   <tt class="py-comment"># Infinite loops in case of S2S connection...</tt> </tt>
<a name="L354"></a><tt class="py-lineno"> 354</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_queue_map</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stanza_queue</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L355"></a><tt class="py-lineno"> 355</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L356"></a><tt class="py-lineno"> 356</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_session_state</tt><tt class="py-op">&gt;=</tt><tt id="link-168" class="py-name"><a title="spade.xmpp.session.SESSION_AUTHED
spade.xmppd.modules.router.SESSION_AUTHED
spade.xmppd.modules.stream.SESSION_AUTHED
spade.xmppd.xmppd.SESSION_AUTHED" class="py-name" href="#" onclick="return doclink('link-168', 'SESSION_AUTHED', 'link-11');">SESSION_AUTHED</a></tt><tt class="py-op">:</tt>       <tt class="py-comment"># FIXME!</tt> </tt>
<a name="L357"></a><tt class="py-lineno"> 357</tt>  <tt class="py-line">            <tt class="py-comment">#### LOCK_QUEUE</tt> </tt>
<a name="L358"></a><tt class="py-lineno"> 358</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">stanza</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stanza_queue</tt><tt class="py-op">:</tt> </tt>
<a name="L359"></a><tt class="py-lineno"> 359</tt>  <tt class="py-line">                <tt class="py-name">txt</tt><tt class="py-op">=</tt><tt class="py-name">stanza</tt><tt class="py-op">.</tt><tt id="link-169" class="py-name" targets="Method spade.ACLMessage.ACLMessage.__str__()=spade.ACLMessage.ACLMessage-class.html#__str__,Method spade.AID.aid.__str__()=spade.AID.aid-class.html#__str__,Method spade.AMS.AmsAgentDescription.__str__()=spade.AMS.AmsAgentDescription-class.html#__str__,Method spade.BasicFipaDateTime.BasicFipaDateTime.__str__()=spade.BasicFipaDateTime.BasicFipaDateTime-class.html#__str__,Method spade.Behaviour.ACLTemplate.__str__()=spade.Behaviour.ACLTemplate-class.html#__str__,Method spade.DF.DfAgentDescription.__str__()=spade.DF.DfAgentDescription-class.html#__str__,Method spade.DF.Service.__str__()=spade.DF.Service-class.html#__str__,Method spade.DF.ServiceDescription.__str__()=spade.DF.ServiceDescription-class.html#__str__,Method spade.Envelope.Envelope.__str__()=spade.Envelope.Envelope-class.html#__str__,Method spade.Platform.PlatformRestart.__str__()=spade.Platform.PlatformRestart-class.html#__str__,Method spade.bdi.Goal.__str__()=spade.bdi.Goal-class.html#__str__,Method spade.content.ContentObject.__str__()=spade.content.ContentObject-class.html#__str__,Method spade.kb.KBConfigurationFailed.__str__()=spade.kb.KBConfigurationFailed-class.html#__str__,Method spade.pyparsing.And.__str__()=spade.pyparsing.And-class.html#__str__,Method spade.pyparsing.CharsNotIn.__str__()=spade.pyparsing.CharsNotIn-class.html#__str__,Method spade.pyparsing.Each.__str__()=spade.pyparsing.Each-class.html#__str__,Method spade.pyparsing.Forward.__str__()=spade.pyparsing.Forward-class.html#__str__,Method spade.pyparsing.MatchFirst.__str__()=spade.pyparsing.MatchFirst-class.html#__str__,Method spade.pyparsing.NotAny.__str__()=spade.pyparsing.NotAny-class.html#__str__,Method spade.pyparsing.OneOrMore.__str__()=spade.pyparsing.OneOrMore-class.html#__str__,Method spade.pyparsing.Optional.__str__()=spade.pyparsing.Optional-class.html#__str__,Method spade.pyparsing.Or.__str__()=spade.pyparsing.Or-class.html#__str__,Method spade.pyparsing.ParseBaseException.__str__()=spade.pyparsing.ParseBaseException-class.html#__str__,Method spade.pyparsing.ParseElementEnhance.__str__()=spade.pyparsing.ParseElementEnhance-class.html#__str__,Method spade.pyparsing.ParseExpression.__str__()=spade.pyparsing.ParseExpression-class.html#__str__,Method spade.pyparsing.ParseResults.__str__()=spade.pyparsing.ParseResults-class.html#__str__,Method spade.pyparsing.ParserElement.__str__()=spade.pyparsing.ParserElement-class.html#__str__,Method spade.pyparsing.RecursiveGrammarException.__str__()=spade.pyparsing.RecursiveGrammarException-class.html#__str__,Method spade.pyparsing.Word.__str__()=spade.pyparsing.Word-class.html#__str__,Method spade.pyparsing.ZeroOrMore.__str__()=spade.pyparsing.ZeroOrMore-class.html#__str__,Method spade.pyparsing._ForwardNoRecurse.__str__()=spade.pyparsing._ForwardNoRecurse-class.html#__str__,Method spade.pyratemp.TemplateBase.__str__()=spade.pyratemp.TemplateBase-class.html#__str__,Method spade.pyratemp.TemplateParseError.__str__()=spade.pyratemp.TemplateParseError-class.html#__str__,Method spade.tbcbp.Case.__str__()=spade.tbcbp.Case-class.html#__str__,Method spade.tbcbp.Plan.__str__()=spade.tbcbp.Plan-class.html#__str__,Method spade.xmpp.protocol.JID.__str__()=spade.xmpp.protocol.JID-class.html#__str__,Method spade.xmpp.simplexml.Node.__str__()=spade.xmpp.simplexml.Node-class.html#__str__,Method spade.xmpp.transports.error.__str__()=spade.xmpp.transports.error-class.html#__str__,Method spade.xmppd.modules.db_fake.DB.__str__()=spade.xmppd.modules.db_fake.DB-class.html#__str__,Method spade.xmppd.modules.muc.Participant.__str__()=spade.xmppd.modules.muc.Participant-class.html#__str__,Method spade.xmppd.modules.muc.Room.__str__()=spade.xmppd.modules.muc.Room-class.html#__str__,Method spade.xmppd.modules.pubsub.PSNode.__str__()=spade.xmppd.modules.pubsub.PSNode-class.html#__str__"><a title="spade.ACLMessage.ACLMessage.__str__
spade.AID.aid.__str__
spade.AMS.AmsAgentDescription.__str__
spade.BasicFipaDateTime.BasicFipaDateTime.__str__
spade.Behaviour.ACLTemplate.__str__
spade.DF.DfAgentDescription.__str__
spade.DF.Service.__str__
spade.DF.ServiceDescription.__str__
spade.Envelope.Envelope.__str__
spade.Platform.PlatformRestart.__str__
spade.bdi.Goal.__str__
spade.content.ContentObject.__str__
spade.kb.KBConfigurationFailed.__str__
spade.pyparsing.And.__str__
spade.pyparsing.CharsNotIn.__str__
spade.pyparsing.Each.__str__
spade.pyparsing.Forward.__str__
spade.pyparsing.MatchFirst.__str__
spade.pyparsing.NotAny.__str__
spade.pyparsing.OneOrMore.__str__
spade.pyparsing.Optional.__str__
spade.pyparsing.Or.__str__
spade.pyparsing.ParseBaseException.__str__
spade.pyparsing.ParseElementEnhance.__str__
spade.pyparsing.ParseExpression.__str__
spade.pyparsing.ParseResults.__str__
spade.pyparsing.ParserElement.__str__
spade.pyparsing.RecursiveGrammarException.__str__
spade.pyparsing.Word.__str__
spade.pyparsing.ZeroOrMore.__str__
spade.pyparsing._ForwardNoRecurse.__str__
spade.pyratemp.TemplateBase.__str__
spade.pyratemp.TemplateParseError.__str__
spade.tbcbp.Case.__str__
spade.tbcbp.Plan.__str__
spade.xmpp.protocol.JID.__str__
spade.xmpp.simplexml.Node.__str__
spade.xmpp.transports.error.__str__
spade.xmppd.modules.db_fake.DB.__str__
spade.xmppd.modules.muc.Participant.__str__
spade.xmppd.modules.muc.Room.__str__
spade.xmppd.modules.pubsub.PSNode.__str__" class="py-name" href="#" onclick="return doclink('link-169', '__str__', 'link-169');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-170" class="py-name"><a title="spade.RDF0Parser.RDF0Parser.encode" class="py-name" href="#" onclick="return doclink('link-170', 'encode', 'link-153');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt> </tt>
<a name="L360"></a><tt class="py-lineno"> 360</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">+=</tt><tt class="py-name">txt</tt> </tt>
<a name="L361"></a><tt class="py-lineno"> 361</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_queued</tt><tt class="py-op">+=</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">txt</tt><tt class="py-op">)</tt>       <tt class="py-comment"># should be re-evaluated for SSL connection.</tt> </tt>
<a name="L362"></a><tt class="py-lineno"> 362</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_queue_map</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_queued</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">stanza</tt>     <tt class="py-comment"># position of the stream when stanza will be successfully and fully sent</tt> </tt>
<a name="L363"></a><tt class="py-lineno"> 363</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">.</tt><tt id="link-171" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-171', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_queued</tt><tt class="py-op">)</tt> </tt>
<a name="L364"></a><tt class="py-lineno"> 364</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stanza_queue</tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L365"></a><tt class="py-lineno"> 365</tt>  <tt class="py-line">            <tt class="py-comment">#### UNLOCK_QUEUE</tt> </tt>
<a name="L366"></a><tt class="py-lineno"> 366</tt>  <tt class="py-line"> </tt>
<a name="L367"></a><tt class="py-lineno"> 367</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt> <tt class="py-keyword">and</tt> <tt class="py-name">select</tt><tt class="py-op">.</tt><tt class="py-name">select</tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L368"></a><tt class="py-lineno"> 368</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L369"></a><tt class="py-lineno"> 369</tt>  <tt class="py-line">                <tt class="py-comment"># LOCK_QUEUE</tt> </tt>
<a name="L370"></a><tt class="py-lineno"> 370</tt>  <tt class="py-line">                <tt class="py-name">sent</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_send</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L371"></a><tt class="py-lineno"> 371</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt> <tt class="py-name">err</tt><tt class="py-op">:</tt> </tt>
<a name="L372"></a><tt class="py-lineno"> 372</tt>  <tt class="py-line">                <tt class="py-comment">#self.DEBUG('server','Attempting to kill %i!!!\n%s'%(self._sock.fileno(),err),'warn')</tt> </tt>
<a name="L373"></a><tt class="py-lineno"> 373</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-172" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-172', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'Attempting to kill %i!!!\n%s'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-173" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-173', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">err</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'warn'</tt><tt class="py-op">)</tt> </tt>
<a name="L374"></a><tt class="py-lineno"> 374</tt>  <tt class="py-line">                <tt class="py-comment"># UNLOCK_QUEUE</tt> </tt>
<a name="L375"></a><tt class="py-lineno"> 375</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-174" class="py-name"><a title="spade.xmpp.session.Session.set_socket_state
spade.xmppd.xmppd.Session.set_socket_state" class="py-name" href="#" onclick="return doclink('link-174', 'set_socket_state', 'link-150');">set_socket_state</a></tt><tt class="py-op">(</tt><tt id="link-175" class="py-name"><a title="spade.xmpp.session.SOCKET_DEAD
spade.xmppd.modules.stream.SOCKET_DEAD
spade.xmppd.xmppd.SOCKET_DEAD" class="py-name" href="#" onclick="return doclink('link-175', 'SOCKET_DEAD', 'link-5');">SOCKET_DEAD</a></tt><tt class="py-op">)</tt> </tt>
<a name="L376"></a><tt class="py-lineno"> 376</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-176" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-176', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SESSION_SEND_ERROR</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L377"></a><tt class="py-lineno"> 377</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-177" class="py-name" targets="Method spade.xmpp.session.Session.terminate_stream()=spade.xmpp.session.Session-class.html#terminate_stream,Method spade.xmppd.xmppd.Session.terminate_stream()=spade.xmppd.xmppd.Session-class.html#terminate_stream"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-177', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L378"></a><tt class="py-lineno"> 378</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-178" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-178', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-op">`</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-179" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-179', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">`</tt><tt class="py-op">+</tt><tt class="py-string">' '</tt><tt class="py-op">+</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-name">sent</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'sent'</tt><tt class="py-op">)</tt> </tt>
<a name="L379"></a><tt class="py-lineno"> 379</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_sent</tt><tt class="py-op">+=</tt><tt class="py-name">sent</tt> </tt>
<a name="L380"></a><tt class="py-lineno"> 380</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">[</tt><tt class="py-name">sent</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L381"></a><tt class="py-lineno"> 381</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_delivered</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_sent</tt>            <tt class="py-comment"># Should be acquired from socket somehow. Take SSL into account.</tt> </tt>
<a name="L382"></a><tt class="py-lineno"> 382</tt>  <tt class="py-line">            <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_delivered</tt><tt class="py-op">&gt;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L383"></a><tt class="py-lineno"> 383</tt>  <tt class="py-line">                <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_queue_map</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L384"></a><tt class="py-lineno"> 384</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">.</tt><tt id="link-180" class="py-name" targets="Method spade.FlexQueue.FlexQueue.remove()=spade.FlexQueue.FlexQueue-class.html#remove"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-180', 'remove', 'link-180');">remove</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L385"></a><tt class="py-lineno"> 385</tt>  <tt class="py-line">            <tt class="py-comment"># UNLOCK_QUEUE</tt> </tt>
<a name="L386"></a><tt class="py-lineno"> 386</tt>  <tt class="py-line">        <tt class="py-string">"""</tt> </tt>
<a name="L387"></a><tt class="py-lineno"> 387</tt>  <tt class="py-line"><tt class="py-string">        elif self.lib_event == None:</tt> </tt>
<a name="L388"></a><tt class="py-lineno"> 388</tt>  <tt class="py-line"><tt class="py-string">            if globals()['cmd_options'].enable_debug == True: print 'starting-up libevent write-event for %i'%self._sock.fileno()</tt> </tt>
<a name="L389"></a><tt class="py-lineno"> 389</tt>  <tt class="py-line"><tt class="py-string">            self.lib_event = event.write(self._sock,self.libevent_write)</tt> </tt>
<a name="L390"></a><tt class="py-lineno"> 390</tt>  <tt class="py-line"><tt class="py-string">            self.lib_event.add()</tt> </tt>
<a name="L391"></a><tt class="py-lineno"> 391</tt>  <tt class="py-line"><tt class="py-string">        else:</tt> </tt>
<a name="L392"></a><tt class="py-lineno"> 392</tt>  <tt class="py-line"><tt class="py-string">            self.lib_event.add()"""</tt> </tt>
</div><a name="L393"></a><tt class="py-lineno"> 393</tt>  <tt class="py-line"> </tt>
<a name="L394"></a><tt class="py-lineno"> 394</tt>  <tt class="py-line"> </tt>
<a name="L395"></a><tt class="py-lineno"> 395</tt>  <tt class="py-line"> </tt>
<a name="Session.libevent_write"></a><div id="Session.libevent_write-def"><a name="L396"></a><tt class="py-lineno"> 396</tt> <a class="py-toggle" href="#" id="Session.libevent_write-toggle" onclick="return toggle('Session.libevent_write');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#libevent_write">libevent_write</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.libevent_write-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.libevent_write-expanded"><a name="L397"></a><tt class="py-lineno"> 397</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">:</tt> </tt>
<a name="L398"></a><tt class="py-lineno"> 398</tt>  <tt class="py-line"> </tt>
<a name="L399"></a><tt class="py-lineno"> 399</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L400"></a><tt class="py-lineno"> 400</tt>  <tt class="py-line">                <tt class="py-comment"># LOCK_QUEUE</tt> </tt>
<a name="L401"></a><tt class="py-lineno"> 401</tt>  <tt class="py-line">                <tt class="py-name">sent</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_send</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L402"></a><tt class="py-lineno"> 402</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt><tt class="py-name">err</tt><tt class="py-op">:</tt> </tt>
<a name="L403"></a><tt class="py-lineno"> 403</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-181" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-181', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Attempting to kill %i!!!\n%s'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-182" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-182', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">err</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'warn'</tt><tt class="py-op">)</tt> </tt>
<a name="L404"></a><tt class="py-lineno"> 404</tt>  <tt class="py-line">                <tt class="py-comment"># UNLOCK_QUEUE</tt> </tt>
<a name="L405"></a><tt class="py-lineno"> 405</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-183" class="py-name"><a title="spade.xmpp.session.Session.set_socket_state
spade.xmppd.xmppd.Session.set_socket_state" class="py-name" href="#" onclick="return doclink('link-183', 'set_socket_state', 'link-150');">set_socket_state</a></tt><tt class="py-op">(</tt><tt id="link-184" class="py-name"><a title="spade.xmpp.session.SOCKET_DEAD
spade.xmppd.modules.stream.SOCKET_DEAD
spade.xmppd.xmppd.SOCKET_DEAD" class="py-name" href="#" onclick="return doclink('link-184', 'SOCKET_DEAD', 'link-5');">SOCKET_DEAD</a></tt><tt class="py-op">)</tt> </tt>
<a name="L406"></a><tt class="py-lineno"> 406</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-185" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-185', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SESSION_SEND_ERROR</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L407"></a><tt class="py-lineno"> 407</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-186" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-186', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L408"></a><tt class="py-lineno"> 408</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-187" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-187', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-op">`</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-188" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-188', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">`</tt><tt class="py-op">+</tt><tt class="py-string">' '</tt><tt class="py-op">+</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">[</tt><tt class="py-op">:</tt><tt class="py-name">sent</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'sent'</tt><tt class="py-op">)</tt> </tt>
<a name="L409"></a><tt class="py-lineno"> 409</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_sent</tt><tt class="py-op">+=</tt><tt class="py-name">sent</tt> </tt>
<a name="L410"></a><tt class="py-lineno"> 410</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sendbuffer</tt><tt class="py-op">[</tt><tt class="py-name">sent</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L411"></a><tt class="py-lineno"> 411</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_delivered</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_sent</tt>            <tt class="py-comment"># Should be acquired from socket somehow. Take SSL into account.</tt> </tt>
<a name="L412"></a><tt class="py-lineno"> 412</tt>  <tt class="py-line">            <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_delivered</tt><tt class="py-op">&gt;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L413"></a><tt class="py-lineno"> 413</tt>  <tt class="py-line">                <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_queue_map</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L414"></a><tt class="py-lineno"> 414</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">.</tt><tt id="link-189" class="py-name"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-189', 'remove', 'link-180');">remove</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">deliver_key_queue</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
</div><a name="L415"></a><tt class="py-lineno"> 415</tt>  <tt class="py-line">            <tt class="py-comment"># UNLOCK_QUEUE</tt> </tt>
<a name="L416"></a><tt class="py-lineno"> 416</tt>  <tt class="py-line"> </tt>
<a name="Session.dispatch"></a><div id="Session.dispatch-def"><a name="L417"></a><tt class="py-lineno"> 417</tt> <a class="py-toggle" href="#" id="Session.dispatch-toggle" onclick="return toggle('Session.dispatch');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#dispatch">dispatch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">stanza</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.dispatch-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.dispatch-expanded"><a name="L418"></a><tt class="py-lineno"> 418</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">==</tt><tt id="link-190" class="py-name"><a title="spade.xmpp.session.STREAM__OPENED
spade.xmppd.modules.stream.STREAM__OPENED
spade.xmppd.xmppd.STREAM__OPENED" class="py-name" href="#" onclick="return doclink('link-190', 'STREAM__OPENED', 'link-7');">STREAM__OPENED</a></tt><tt class="py-op">:</tt>                  <tt class="py-comment"># if the server really should reject all stanzas after he is closed stream (himeself)?</tt> </tt>
<a name="L419"></a><tt class="py-lineno"> 419</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-191" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-191', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">.</tt><tt id="link-192" class="py-name"><a title="spade.ACLMessage.ACLMessage.__str__
spade.AID.aid.__str__
spade.AMS.AmsAgentDescription.__str__
spade.BasicFipaDateTime.BasicFipaDateTime.__str__
spade.Behaviour.ACLTemplate.__str__
spade.DF.DfAgentDescription.__str__
spade.DF.Service.__str__
spade.DF.ServiceDescription.__str__
spade.Envelope.Envelope.__str__
spade.Platform.PlatformRestart.__str__
spade.bdi.Goal.__str__
spade.content.ContentObject.__str__
spade.kb.KBConfigurationFailed.__str__
spade.pyparsing.And.__str__
spade.pyparsing.CharsNotIn.__str__
spade.pyparsing.Each.__str__
spade.pyparsing.Forward.__str__
spade.pyparsing.MatchFirst.__str__
spade.pyparsing.NotAny.__str__
spade.pyparsing.OneOrMore.__str__
spade.pyparsing.Optional.__str__
spade.pyparsing.Or.__str__
spade.pyparsing.ParseBaseException.__str__
spade.pyparsing.ParseElementEnhance.__str__
spade.pyparsing.ParseExpression.__str__
spade.pyparsing.ParseResults.__str__
spade.pyparsing.ParserElement.__str__
spade.pyparsing.RecursiveGrammarException.__str__
spade.pyparsing.Word.__str__
spade.pyparsing.ZeroOrMore.__str__
spade.pyparsing._ForwardNoRecurse.__str__
spade.pyratemp.TemplateBase.__str__
spade.pyratemp.TemplateParseError.__str__
spade.tbcbp.Case.__str__
spade.tbcbp.Plan.__str__
spade.xmpp.protocol.JID.__str__
spade.xmpp.simplexml.Node.__str__
spade.xmpp.transports.error.__str__
spade.xmppd.modules.db_fake.DB.__str__
spade.xmppd.modules.muc.Participant.__str__
spade.xmppd.modules.muc.Room.__str__
spade.xmppd.modules.pubsub.PSNode.__str__" class="py-name" href="#" onclick="return doclink('link-192', '__str__', 'link-169');">__str__</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'dispatch'</tt><tt class="py-op">)</tt> </tt>
<a name="L420"></a><tt class="py-lineno"> 420</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-193" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-193', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-194" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-194', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L421"></a><tt class="py-lineno"> 421</tt>  <tt class="py-line"> </tt>
<a name="Session.fileno"></a><div id="Session.fileno-def"><a name="L422"></a><tt class="py-lineno"> 422</tt> <a class="py-toggle" href="#" id="Session.fileno-toggle" onclick="return toggle('Session.fileno');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#fileno">fileno</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-195" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-195', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L423"></a><tt class="py-lineno"> 423</tt>  <tt class="py-line"> </tt>
<a name="Session._catch_stream_id"></a><div id="Session._catch_stream_id-def"><a name="L424"></a><tt class="py-lineno"> 424</tt> <a class="py-toggle" href="#" id="Session._catch_stream_id-toggle" onclick="return toggle('Session._catch_stream_id');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#_catch_stream_id">_catch_stream_id</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">ns</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">tag</tt><tt class="py-op">=</tt><tt class="py-string">'stream'</tt><tt class="py-op">,</tt><tt class="py-param">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._catch_stream_id-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session._catch_stream_id-expanded"><a name="L425"></a><tt class="py-lineno"> 425</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'id'</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-keyword">not</tt> <tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'id'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L426"></a><tt class="py-lineno"> 426</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-196" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-196', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-197" class="py-name" targets="Variable spade.Agent.STREAM_INVALID_XML=spade.Agent-module.html#STREAM_INVALID_XML,Variable spade.MTP.STREAM_INVALID_XML=spade.MTP-module.html#STREAM_INVALID_XML,Variable spade.Organization.STREAM_INVALID_XML=spade.Organization-module.html#STREAM_INVALID_XML,Variable spade.Organization_new.STREAM_INVALID_XML=spade.Organization_new-module.html#STREAM_INVALID_XML,Variable spade.Unit.STREAM_INVALID_XML=spade.Unit-module.html#STREAM_INVALID_XML,Variable spade.Unit_new.STREAM_INVALID_XML=spade.Unit_new-module.html#STREAM_INVALID_XML,Variable spade.pubsub.STREAM_INVALID_XML=spade.pubsub-module.html#STREAM_INVALID_XML,Variable spade.socialnetwork.STREAM_INVALID_XML=spade.socialnetwork-module.html#STREAM_INVALID_XML,Variable spade.xmpp.STREAM_INVALID_XML=spade.xmpp-module.html#STREAM_INVALID_XML,Variable spade.xmpp.auth.STREAM_INVALID_XML=spade.xmpp.auth-module.html#STREAM_INVALID_XML,Variable spade.xmpp.browser.STREAM_INVALID_XML=spade.xmpp.browser-module.html#STREAM_INVALID_XML,Variable spade.xmpp.commands.STREAM_INVALID_XML=spade.xmpp.commands-module.html#STREAM_INVALID_XML,Variable spade.xmpp.dispatcher.STREAM_INVALID_XML=spade.xmpp.dispatcher-module.html#STREAM_INVALID_XML,Variable spade.xmpp.features.STREAM_INVALID_XML=spade.xmpp.features-module.html#STREAM_INVALID_XML,Variable spade.xmpp.filetransfer.STREAM_INVALID_XML=spade.xmpp.filetransfer-module.html#STREAM_INVALID_XML,Variable spade.xmpp.protocol.STREAM_INVALID_XML=spade.xmpp.protocol-module.html#STREAM_INVALID_XML,Variable spade.xmpp.roster.STREAM_INVALID_XML=spade.xmpp.roster-module.html#STREAM_INVALID_XML,Variable spade.xmpp.transports.STREAM_INVALID_XML=spade.xmpp.transports-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.config.STREAM_INVALID_XML=spade.xmppd.modules.config-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.db_fake.STREAM_INVALID_XML=spade.xmppd.modules.db_fake-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.dialback.STREAM_INVALID_XML=spade.xmppd.modules.dialback-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.jep0077.STREAM_INVALID_XML=spade.xmppd.modules.jep0077-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.jep0078.STREAM_INVALID_XML=spade.xmppd.modules.jep0078-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.message.STREAM_INVALID_XML=spade.xmppd.modules.message-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.muc.STREAM_INVALID_XML=spade.xmppd.modules.muc-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.oob.STREAM_INVALID_XML=spade.xmppd.modules.oob-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.pubsub.STREAM_INVALID_XML=spade.xmppd.modules.pubsub-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.roster.STREAM_INVALID_XML=spade.xmppd.modules.roster-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.router.STREAM_INVALID_XML=spade.xmppd.modules.router-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.stream.STREAM_INVALID_XML=spade.xmppd.modules.stream-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.webadmin.STREAM_INVALID_XML=spade.xmppd.modules.webadmin-module.html#STREAM_INVALID_XML,Variable spade.xmppd.modules.wq.STREAM_INVALID_XML=spade.xmppd.modules.wq-module.html#STREAM_INVALID_XML,Variable spade.xmppd.xmppd.STREAM_INVALID_XML=spade.xmppd.xmppd-module.html#STREAM_INVALID_XML"><a title="spade.Agent.STREAM_INVALID_XML
spade.MTP.STREAM_INVALID_XML
spade.Organization.STREAM_INVALID_XML
spade.Organization_new.STREAM_INVALID_XML
spade.Unit.STREAM_INVALID_XML
spade.Unit_new.STREAM_INVALID_XML
spade.pubsub.STREAM_INVALID_XML
spade.socialnetwork.STREAM_INVALID_XML
spade.xmpp.STREAM_INVALID_XML
spade.xmpp.auth.STREAM_INVALID_XML
spade.xmpp.browser.STREAM_INVALID_XML
spade.xmpp.commands.STREAM_INVALID_XML
spade.xmpp.dispatcher.STREAM_INVALID_XML
spade.xmpp.features.STREAM_INVALID_XML
spade.xmpp.filetransfer.STREAM_INVALID_XML
spade.xmpp.protocol.STREAM_INVALID_XML
spade.xmpp.roster.STREAM_INVALID_XML
spade.xmpp.transports.STREAM_INVALID_XML
spade.xmppd.modules.config.STREAM_INVALID_XML
spade.xmppd.modules.db_fake.STREAM_INVALID_XML
spade.xmppd.modules.dialback.STREAM_INVALID_XML
spade.xmppd.modules.jep0077.STREAM_INVALID_XML
spade.xmppd.modules.jep0078.STREAM_INVALID_XML
spade.xmppd.modules.message.STREAM_INVALID_XML
spade.xmppd.modules.muc.STREAM_INVALID_XML
spade.xmppd.modules.oob.STREAM_INVALID_XML
spade.xmppd.modules.pubsub.STREAM_INVALID_XML
spade.xmppd.modules.roster.STREAM_INVALID_XML
spade.xmppd.modules.router.STREAM_INVALID_XML
spade.xmppd.modules.stream.STREAM_INVALID_XML
spade.xmppd.modules.webadmin.STREAM_INVALID_XML
spade.xmppd.modules.wq.STREAM_INVALID_XML
spade.xmppd.xmppd.STREAM_INVALID_XML" class="py-name" href="#" onclick="return doclink('link-197', 'STREAM_INVALID_XML', 'link-197');">STREAM_INVALID_XML</a></tt><tt class="py-op">)</tt> </tt>
<a name="L427"></a><tt class="py-lineno"> 427</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-198" class="py-name"><a title="spade.xmpp.browser.ID
spade.xmpp.dispatcher.ID" class="py-name" href="#" onclick="return doclink('link-198', 'ID', 'link-114');">ID</a></tt><tt class="py-op">=</tt><tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'id'</tt><tt class="py-op">]</tt> </tt>
<a name="L428"></a><tt class="py-lineno"> 428</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'version'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-199" class="py-name" targets="Class spade.xmppd.modules.dialback.Dialback=spade.xmppd.modules.dialback.Dialback-class.html,Method spade.xmppd.xmppd.Server.Dialback()=spade.xmppd.xmppd.Server-class.html#Dialback"><a title="spade.xmppd.modules.dialback.Dialback
spade.xmppd.xmppd.Server.Dialback" class="py-name" href="#" onclick="return doclink('link-199', 'Dialback', 'link-199');">Dialback</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="L429"></a><tt class="py-lineno"> 429</tt>  <tt class="py-line"> </tt>
<a name="Session._stream_open"></a><div id="Session._stream_open-def"><a name="L430"></a><tt class="py-lineno"> 430</tt> <a class="py-toggle" href="#" id="Session._stream_open-toggle" onclick="return toggle('Session._stream_open');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#_stream_open">_stream_open</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">ns</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">tag</tt><tt class="py-op">=</tt><tt class="py-string">'stream'</tt><tt class="py-op">,</tt><tt class="py-param">attrs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._stream_open-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session._stream_open-expanded"><a name="L431"></a><tt class="py-lineno"> 431</tt>  <tt class="py-line">        <tt class="py-name">text</tt><tt class="py-op">=</tt><tt class="py-string">'&lt;?xml version="1.0" encoding="utf-8"?&gt;\n&lt;stream:stream'</tt> </tt>
<a name="L432"></a><tt class="py-lineno"> 432</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">==</tt><tt class="py-string">'client'</tt><tt class="py-op">:</tt> </tt>
<a name="L433"></a><tt class="py-lineno"> 433</tt>  <tt class="py-line">            <tt class="py-name">text</tt><tt class="py-op">+=</tt><tt class="py-string">' to="%s"'</tt><tt class="py-op">%</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt> </tt>
<a name="L434"></a><tt class="py-lineno"> 434</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L435"></a><tt class="py-lineno"> 435</tt>  <tt class="py-line">            <tt class="py-name">text</tt><tt class="py-op">+=</tt><tt class="py-string">' id="%s"'</tt><tt class="py-op">%</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-200" class="py-name"><a title="spade.xmpp.browser.ID
spade.xmpp.dispatcher.ID" class="py-name" href="#" onclick="return doclink('link-200', 'ID', 'link-114');">ID</a></tt> </tt>
<a name="L436"></a><tt class="py-lineno"> 436</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'to'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">text</tt><tt class="py-op">+=</tt><tt class="py-string">' from="%s"'</tt><tt class="py-op">%</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-201" class="py-name" targets="Variable spade.xmppd.modules.config.servernames=spade.xmppd.modules.config-module.html#servernames"><a title="spade.xmppd.modules.config.servernames" class="py-name" href="#" onclick="return doclink('link-201', 'servernames', 'link-201');">servernames</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L437"></a><tt class="py-lineno"> 437</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">text</tt><tt class="py-op">+=</tt><tt class="py-string">' from="%s"'</tt><tt class="py-op">%</tt><tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt> </tt>
<a name="L438"></a><tt class="py-lineno"> 438</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'xml:lang'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">text</tt><tt class="py-op">+=</tt><tt class="py-string">' xml:lang="%s"'</tt><tt class="py-op">%</tt><tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'xml:lang'</tt><tt class="py-op">]</tt> </tt>
<a name="L439"></a><tt class="py-lineno"> 439</tt>  <tt class="py-line">        <tt class="py-comment">#if self.xmlns: xmlns=self.xmlns</tt> </tt>
<a name="L440"></a><tt class="py-lineno"> 440</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-202" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-202', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt class="py-name">xmlns</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt id="link-203" class="py-name" targets="Variable spade.Agent.NS_CLIENT=spade.Agent-module.html#NS_CLIENT,Variable spade.MTP.NS_CLIENT=spade.MTP-module.html#NS_CLIENT,Variable spade.Organization.NS_CLIENT=spade.Organization-module.html#NS_CLIENT,Variable spade.Organization_new.NS_CLIENT=spade.Organization_new-module.html#NS_CLIENT,Variable spade.Unit.NS_CLIENT=spade.Unit-module.html#NS_CLIENT,Variable spade.Unit_new.NS_CLIENT=spade.Unit_new-module.html#NS_CLIENT,Variable spade.pubsub.NS_CLIENT=spade.pubsub-module.html#NS_CLIENT,Variable spade.socialnetwork.NS_CLIENT=spade.socialnetwork-module.html#NS_CLIENT,Variable spade.xmpp.NS_CLIENT=spade.xmpp-module.html#NS_CLIENT,Variable spade.xmpp.auth.NS_CLIENT=spade.xmpp.auth-module.html#NS_CLIENT,Variable spade.xmpp.browser.NS_CLIENT=spade.xmpp.browser-module.html#NS_CLIENT,Variable spade.xmpp.commands.NS_CLIENT=spade.xmpp.commands-module.html#NS_CLIENT,Variable spade.xmpp.dispatcher.NS_CLIENT=spade.xmpp.dispatcher-module.html#NS_CLIENT,Variable spade.xmpp.features.NS_CLIENT=spade.xmpp.features-module.html#NS_CLIENT,Variable spade.xmpp.filetransfer.NS_CLIENT=spade.xmpp.filetransfer-module.html#NS_CLIENT,Variable spade.xmpp.protocol.NS_CLIENT=spade.xmpp.protocol-module.html#NS_CLIENT,Variable spade.xmpp.roster.NS_CLIENT=spade.xmpp.roster-module.html#NS_CLIENT,Variable spade.xmpp.transports.NS_CLIENT=spade.xmpp.transports-module.html#NS_CLIENT,Variable spade.xmppd.modules.config.NS_CLIENT=spade.xmppd.modules.config-module.html#NS_CLIENT,Variable spade.xmppd.modules.db_fake.NS_CLIENT=spade.xmppd.modules.db_fake-module.html#NS_CLIENT,Variable spade.xmppd.modules.dialback.NS_CLIENT=spade.xmppd.modules.dialback-module.html#NS_CLIENT,Variable spade.xmppd.modules.jep0077.NS_CLIENT=spade.xmppd.modules.jep0077-module.html#NS_CLIENT,Variable spade.xmppd.modules.jep0078.NS_CLIENT=spade.xmppd.modules.jep0078-module.html#NS_CLIENT,Variable spade.xmppd.modules.message.NS_CLIENT=spade.xmppd.modules.message-module.html#NS_CLIENT,Variable spade.xmppd.modules.muc.NS_CLIENT=spade.xmppd.modules.muc-module.html#NS_CLIENT,Variable spade.xmppd.modules.oob.NS_CLIENT=spade.xmppd.modules.oob-module.html#NS_CLIENT,Variable spade.xmppd.modules.pubsub.NS_CLIENT=spade.xmppd.modules.pubsub-module.html#NS_CLIENT,Variable spade.xmppd.modules.roster.NS_CLIENT=spade.xmppd.modules.roster-module.html#NS_CLIENT,Variable spade.xmppd.modules.router.NS_CLIENT=spade.xmppd.modules.router-module.html#NS_CLIENT,Variable spade.xmppd.modules.stream.NS_CLIENT=spade.xmppd.modules.stream-module.html#NS_CLIENT,Variable spade.xmppd.modules.webadmin.NS_CLIENT=spade.xmppd.modules.webadmin-module.html#NS_CLIENT,Variable spade.xmppd.modules.wq.NS_CLIENT=spade.xmppd.modules.wq-module.html#NS_CLIENT,Variable spade.xmppd.xmppd.NS_CLIENT=spade.xmppd.xmppd-module.html#NS_CLIENT"><a title="spade.Agent.NS_CLIENT
spade.MTP.NS_CLIENT
spade.Organization.NS_CLIENT
spade.Organization_new.NS_CLIENT
spade.Unit.NS_CLIENT
spade.Unit_new.NS_CLIENT
spade.pubsub.NS_CLIENT
spade.socialnetwork.NS_CLIENT
spade.xmpp.NS_CLIENT
spade.xmpp.auth.NS_CLIENT
spade.xmpp.browser.NS_CLIENT
spade.xmpp.commands.NS_CLIENT
spade.xmpp.dispatcher.NS_CLIENT
spade.xmpp.features.NS_CLIENT
spade.xmpp.filetransfer.NS_CLIENT
spade.xmpp.protocol.NS_CLIENT
spade.xmpp.roster.NS_CLIENT
spade.xmpp.transports.NS_CLIENT
spade.xmppd.modules.config.NS_CLIENT
spade.xmppd.modules.db_fake.NS_CLIENT
spade.xmppd.modules.dialback.NS_CLIENT
spade.xmppd.modules.jep0077.NS_CLIENT
spade.xmppd.modules.jep0078.NS_CLIENT
spade.xmppd.modules.message.NS_CLIENT
spade.xmppd.modules.muc.NS_CLIENT
spade.xmppd.modules.oob.NS_CLIENT
spade.xmppd.modules.pubsub.NS_CLIENT
spade.xmppd.modules.roster.NS_CLIENT
spade.xmppd.modules.router.NS_CLIENT
spade.xmppd.modules.stream.NS_CLIENT
spade.xmppd.modules.webadmin.NS_CLIENT
spade.xmppd.modules.wq.NS_CLIENT
spade.xmppd.xmppd.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-203', 'NS_CLIENT', 'link-203');">NS_CLIENT</a></tt><tt class="py-op">,</tt> <tt id="link-204" class="py-name" targets="Variable spade.Agent.NS_COMPONENT_ACCEPT=spade.Agent-module.html#NS_COMPONENT_ACCEPT,Variable spade.MTP.NS_COMPONENT_ACCEPT=spade.MTP-module.html#NS_COMPONENT_ACCEPT,Variable spade.Organization.NS_COMPONENT_ACCEPT=spade.Organization-module.html#NS_COMPONENT_ACCEPT,Variable spade.Organization_new.NS_COMPONENT_ACCEPT=spade.Organization_new-module.html#NS_COMPONENT_ACCEPT,Variable spade.Unit.NS_COMPONENT_ACCEPT=spade.Unit-module.html#NS_COMPONENT_ACCEPT,Variable spade.Unit_new.NS_COMPONENT_ACCEPT=spade.Unit_new-module.html#NS_COMPONENT_ACCEPT,Variable spade.pubsub.NS_COMPONENT_ACCEPT=spade.pubsub-module.html#NS_COMPONENT_ACCEPT,Variable spade.socialnetwork.NS_COMPONENT_ACCEPT=spade.socialnetwork-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.NS_COMPONENT_ACCEPT=spade.xmpp-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.auth.NS_COMPONENT_ACCEPT=spade.xmpp.auth-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.browser.NS_COMPONENT_ACCEPT=spade.xmpp.browser-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.commands.NS_COMPONENT_ACCEPT=spade.xmpp.commands-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.dispatcher.NS_COMPONENT_ACCEPT=spade.xmpp.dispatcher-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.features.NS_COMPONENT_ACCEPT=spade.xmpp.features-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.filetransfer.NS_COMPONENT_ACCEPT=spade.xmpp.filetransfer-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.protocol.NS_COMPONENT_ACCEPT=spade.xmpp.protocol-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.roster.NS_COMPONENT_ACCEPT=spade.xmpp.roster-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmpp.transports.NS_COMPONENT_ACCEPT=spade.xmpp.transports-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.config.NS_COMPONENT_ACCEPT=spade.xmppd.modules.config-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.db_fake.NS_COMPONENT_ACCEPT=spade.xmppd.modules.db_fake-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.dialback.NS_COMPONENT_ACCEPT=spade.xmppd.modules.dialback-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.jep0077.NS_COMPONENT_ACCEPT=spade.xmppd.modules.jep0077-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.jep0078.NS_COMPONENT_ACCEPT=spade.xmppd.modules.jep0078-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.message.NS_COMPONENT_ACCEPT=spade.xmppd.modules.message-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.muc.NS_COMPONENT_ACCEPT=spade.xmppd.modules.muc-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.oob.NS_COMPONENT_ACCEPT=spade.xmppd.modules.oob-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.pubsub.NS_COMPONENT_ACCEPT=spade.xmppd.modules.pubsub-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.roster.NS_COMPONENT_ACCEPT=spade.xmppd.modules.roster-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.router.NS_COMPONENT_ACCEPT=spade.xmppd.modules.router-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.stream.NS_COMPONENT_ACCEPT=spade.xmppd.modules.stream-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.webadmin.NS_COMPONENT_ACCEPT=spade.xmppd.modules.webadmin-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.modules.wq.NS_COMPONENT_ACCEPT=spade.xmppd.modules.wq-module.html#NS_COMPONENT_ACCEPT,Variable spade.xmppd.xmppd.NS_COMPONENT_ACCEPT=spade.xmppd.xmppd-module.html#NS_COMPONENT_ACCEPT"><a title="spade.Agent.NS_COMPONENT_ACCEPT
spade.MTP.NS_COMPONENT_ACCEPT
spade.Organization.NS_COMPONENT_ACCEPT
spade.Organization_new.NS_COMPONENT_ACCEPT
spade.Unit.NS_COMPONENT_ACCEPT
spade.Unit_new.NS_COMPONENT_ACCEPT
spade.pubsub.NS_COMPONENT_ACCEPT
spade.socialnetwork.NS_COMPONENT_ACCEPT
spade.xmpp.NS_COMPONENT_ACCEPT
spade.xmpp.auth.NS_COMPONENT_ACCEPT
spade.xmpp.browser.NS_COMPONENT_ACCEPT
spade.xmpp.commands.NS_COMPONENT_ACCEPT
spade.xmpp.dispatcher.NS_COMPONENT_ACCEPT
spade.xmpp.features.NS_COMPONENT_ACCEPT
spade.xmpp.filetransfer.NS_COMPONENT_ACCEPT
spade.xmpp.protocol.NS_COMPONENT_ACCEPT
spade.xmpp.roster.NS_COMPONENT_ACCEPT
spade.xmpp.transports.NS_COMPONENT_ACCEPT
spade.xmppd.modules.config.NS_COMPONENT_ACCEPT
spade.xmppd.modules.db_fake.NS_COMPONENT_ACCEPT
spade.xmppd.modules.dialback.NS_COMPONENT_ACCEPT
spade.xmppd.modules.jep0077.NS_COMPONENT_ACCEPT
spade.xmppd.modules.jep0078.NS_COMPONENT_ACCEPT
spade.xmppd.modules.message.NS_COMPONENT_ACCEPT
spade.xmppd.modules.muc.NS_COMPONENT_ACCEPT
spade.xmppd.modules.oob.NS_COMPONENT_ACCEPT
spade.xmppd.modules.pubsub.NS_COMPONENT_ACCEPT
spade.xmppd.modules.roster.NS_COMPONENT_ACCEPT
spade.xmppd.modules.router.NS_COMPONENT_ACCEPT
spade.xmppd.modules.stream.NS_COMPONENT_ACCEPT
spade.xmppd.modules.webadmin.NS_COMPONENT_ACCEPT
spade.xmppd.modules.wq.NS_COMPONENT_ACCEPT
spade.xmppd.xmppd.NS_COMPONENT_ACCEPT" class="py-name" href="#" onclick="return doclink('link-204', 'NS_COMPONENT_ACCEPT', 'link-204');">NS_COMPONENT_ACCEPT</a></tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">xmlns</tt> <tt class="py-op">=</tt> <tt class="py-name">xmlns</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-205" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-205', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt class="py-name">xmlns</tt> </tt>
<a name="L441"></a><tt class="py-lineno"> 441</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">xmlns</tt><tt class="py-op">=</tt><tt id="link-206" class="py-name" targets="Variable spade.Agent.NS_SERVER=spade.Agent-module.html#NS_SERVER,Variable spade.MTP.NS_SERVER=spade.MTP-module.html#NS_SERVER,Variable spade.Organization.NS_SERVER=spade.Organization-module.html#NS_SERVER,Variable spade.Organization_new.NS_SERVER=spade.Organization_new-module.html#NS_SERVER,Variable spade.Unit.NS_SERVER=spade.Unit-module.html#NS_SERVER,Variable spade.Unit_new.NS_SERVER=spade.Unit_new-module.html#NS_SERVER,Variable spade.pubsub.NS_SERVER=spade.pubsub-module.html#NS_SERVER,Variable spade.socialnetwork.NS_SERVER=spade.socialnetwork-module.html#NS_SERVER,Variable spade.xmpp.NS_SERVER=spade.xmpp-module.html#NS_SERVER,Variable spade.xmpp.auth.NS_SERVER=spade.xmpp.auth-module.html#NS_SERVER,Variable spade.xmpp.browser.NS_SERVER=spade.xmpp.browser-module.html#NS_SERVER,Variable spade.xmpp.commands.NS_SERVER=spade.xmpp.commands-module.html#NS_SERVER,Variable spade.xmpp.dispatcher.NS_SERVER=spade.xmpp.dispatcher-module.html#NS_SERVER,Variable spade.xmpp.features.NS_SERVER=spade.xmpp.features-module.html#NS_SERVER,Variable spade.xmpp.filetransfer.NS_SERVER=spade.xmpp.filetransfer-module.html#NS_SERVER,Variable spade.xmpp.protocol.NS_SERVER=spade.xmpp.protocol-module.html#NS_SERVER,Variable spade.xmpp.roster.NS_SERVER=spade.xmpp.roster-module.html#NS_SERVER,Variable spade.xmpp.transports.NS_SERVER=spade.xmpp.transports-module.html#NS_SERVER,Variable spade.xmppd.modules.config.NS_SERVER=spade.xmppd.modules.config-module.html#NS_SERVER,Variable spade.xmppd.modules.db_fake.NS_SERVER=spade.xmppd.modules.db_fake-module.html#NS_SERVER,Variable spade.xmppd.modules.dialback.NS_SERVER=spade.xmppd.modules.dialback-module.html#NS_SERVER,Variable spade.xmppd.modules.jep0077.NS_SERVER=spade.xmppd.modules.jep0077-module.html#NS_SERVER,Variable spade.xmppd.modules.jep0078.NS_SERVER=spade.xmppd.modules.jep0078-module.html#NS_SERVER,Variable spade.xmppd.modules.message.NS_SERVER=spade.xmppd.modules.message-module.html#NS_SERVER,Variable spade.xmppd.modules.muc.NS_SERVER=spade.xmppd.modules.muc-module.html#NS_SERVER,Variable spade.xmppd.modules.oob.NS_SERVER=spade.xmppd.modules.oob-module.html#NS_SERVER,Variable spade.xmppd.modules.pubsub.NS_SERVER=spade.xmppd.modules.pubsub-module.html#NS_SERVER,Variable spade.xmppd.modules.roster.NS_SERVER=spade.xmppd.modules.roster-module.html#NS_SERVER,Variable spade.xmppd.modules.router.NS_SERVER=spade.xmppd.modules.router-module.html#NS_SERVER,Variable spade.xmppd.modules.stream.NS_SERVER=spade.xmppd.modules.stream-module.html#NS_SERVER,Variable spade.xmppd.modules.webadmin.NS_SERVER=spade.xmppd.modules.webadmin-module.html#NS_SERVER,Variable spade.xmppd.modules.wq.NS_SERVER=spade.xmppd.modules.wq-module.html#NS_SERVER,Variable spade.xmppd.xmppd.NS_SERVER=spade.xmppd.xmppd-module.html#NS_SERVER"><a title="spade.Agent.NS_SERVER
spade.MTP.NS_SERVER
spade.Organization.NS_SERVER
spade.Organization_new.NS_SERVER
spade.Unit.NS_SERVER
spade.Unit_new.NS_SERVER
spade.pubsub.NS_SERVER
spade.socialnetwork.NS_SERVER
spade.xmpp.NS_SERVER
spade.xmpp.auth.NS_SERVER
spade.xmpp.browser.NS_SERVER
spade.xmpp.commands.NS_SERVER
spade.xmpp.dispatcher.NS_SERVER
spade.xmpp.features.NS_SERVER
spade.xmpp.filetransfer.NS_SERVER
spade.xmpp.protocol.NS_SERVER
spade.xmpp.roster.NS_SERVER
spade.xmpp.transports.NS_SERVER
spade.xmppd.modules.config.NS_SERVER
spade.xmppd.modules.db_fake.NS_SERVER
spade.xmppd.modules.dialback.NS_SERVER
spade.xmppd.modules.jep0077.NS_SERVER
spade.xmppd.modules.jep0078.NS_SERVER
spade.xmppd.modules.message.NS_SERVER
spade.xmppd.modules.muc.NS_SERVER
spade.xmppd.modules.oob.NS_SERVER
spade.xmppd.modules.pubsub.NS_SERVER
spade.xmppd.modules.roster.NS_SERVER
spade.xmppd.modules.router.NS_SERVER
spade.xmppd.modules.stream.NS_SERVER
spade.xmppd.modules.webadmin.NS_SERVER
spade.xmppd.modules.wq.NS_SERVER
spade.xmppd.xmppd.NS_SERVER" class="py-name" href="#" onclick="return doclink('link-206', 'NS_SERVER', 'link-206');">NS_SERVER</a></tt> </tt>
<a name="L442"></a><tt class="py-lineno"> 442</tt>  <tt class="py-line">        <tt class="py-name">text</tt><tt class="py-op">+=</tt><tt class="py-string">' xmlns:db="%s" xmlns:stream="%s" xmlns="%s"'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt id="link-207" class="py-name" targets="Variable spade.Agent.NS_DIALBACK=spade.Agent-module.html#NS_DIALBACK,Variable spade.MTP.NS_DIALBACK=spade.MTP-module.html#NS_DIALBACK,Variable spade.Organization.NS_DIALBACK=spade.Organization-module.html#NS_DIALBACK,Variable spade.Organization_new.NS_DIALBACK=spade.Organization_new-module.html#NS_DIALBACK,Variable spade.Unit.NS_DIALBACK=spade.Unit-module.html#NS_DIALBACK,Variable spade.Unit_new.NS_DIALBACK=spade.Unit_new-module.html#NS_DIALBACK,Variable spade.pubsub.NS_DIALBACK=spade.pubsub-module.html#NS_DIALBACK,Variable spade.socialnetwork.NS_DIALBACK=spade.socialnetwork-module.html#NS_DIALBACK,Variable spade.xmpp.NS_DIALBACK=spade.xmpp-module.html#NS_DIALBACK,Variable spade.xmpp.auth.NS_DIALBACK=spade.xmpp.auth-module.html#NS_DIALBACK,Variable spade.xmpp.browser.NS_DIALBACK=spade.xmpp.browser-module.html#NS_DIALBACK,Variable spade.xmpp.commands.NS_DIALBACK=spade.xmpp.commands-module.html#NS_DIALBACK,Variable spade.xmpp.dispatcher.NS_DIALBACK=spade.xmpp.dispatcher-module.html#NS_DIALBACK,Variable spade.xmpp.features.NS_DIALBACK=spade.xmpp.features-module.html#NS_DIALBACK,Variable spade.xmpp.filetransfer.NS_DIALBACK=spade.xmpp.filetransfer-module.html#NS_DIALBACK,Variable spade.xmpp.protocol.NS_DIALBACK=spade.xmpp.protocol-module.html#NS_DIALBACK,Variable spade.xmpp.roster.NS_DIALBACK=spade.xmpp.roster-module.html#NS_DIALBACK,Variable spade.xmpp.transports.NS_DIALBACK=spade.xmpp.transports-module.html#NS_DIALBACK,Variable spade.xmppd.modules.config.NS_DIALBACK=spade.xmppd.modules.config-module.html#NS_DIALBACK,Variable spade.xmppd.modules.db_fake.NS_DIALBACK=spade.xmppd.modules.db_fake-module.html#NS_DIALBACK,Variable spade.xmppd.modules.dialback.NS_DIALBACK=spade.xmppd.modules.dialback-module.html#NS_DIALBACK,Variable spade.xmppd.modules.jep0077.NS_DIALBACK=spade.xmppd.modules.jep0077-module.html#NS_DIALBACK,Variable spade.xmppd.modules.jep0078.NS_DIALBACK=spade.xmppd.modules.jep0078-module.html#NS_DIALBACK,Variable spade.xmppd.modules.message.NS_DIALBACK=spade.xmppd.modules.message-module.html#NS_DIALBACK,Variable spade.xmppd.modules.muc.NS_DIALBACK=spade.xmppd.modules.muc-module.html#NS_DIALBACK,Variable spade.xmppd.modules.oob.NS_DIALBACK=spade.xmppd.modules.oob-module.html#NS_DIALBACK,Variable spade.xmppd.modules.pubsub.NS_DIALBACK=spade.xmppd.modules.pubsub-module.html#NS_DIALBACK,Variable spade.xmppd.modules.roster.NS_DIALBACK=spade.xmppd.modules.roster-module.html#NS_DIALBACK,Variable spade.xmppd.modules.router.NS_DIALBACK=spade.xmppd.modules.router-module.html#NS_DIALBACK,Variable spade.xmppd.modules.stream.NS_DIALBACK=spade.xmppd.modules.stream-module.html#NS_DIALBACK,Variable spade.xmppd.modules.webadmin.NS_DIALBACK=spade.xmppd.modules.webadmin-module.html#NS_DIALBACK,Variable spade.xmppd.modules.wq.NS_DIALBACK=spade.xmppd.modules.wq-module.html#NS_DIALBACK,Variable spade.xmppd.xmppd.NS_DIALBACK=spade.xmppd.xmppd-module.html#NS_DIALBACK"><a title="spade.Agent.NS_DIALBACK
spade.MTP.NS_DIALBACK
spade.Organization.NS_DIALBACK
spade.Organization_new.NS_DIALBACK
spade.Unit.NS_DIALBACK
spade.Unit_new.NS_DIALBACK
spade.pubsub.NS_DIALBACK
spade.socialnetwork.NS_DIALBACK
spade.xmpp.NS_DIALBACK
spade.xmpp.auth.NS_DIALBACK
spade.xmpp.browser.NS_DIALBACK
spade.xmpp.commands.NS_DIALBACK
spade.xmpp.dispatcher.NS_DIALBACK
spade.xmpp.features.NS_DIALBACK
spade.xmpp.filetransfer.NS_DIALBACK
spade.xmpp.protocol.NS_DIALBACK
spade.xmpp.roster.NS_DIALBACK
spade.xmpp.transports.NS_DIALBACK
spade.xmppd.modules.config.NS_DIALBACK
spade.xmppd.modules.db_fake.NS_DIALBACK
spade.xmppd.modules.dialback.NS_DIALBACK
spade.xmppd.modules.jep0077.NS_DIALBACK
spade.xmppd.modules.jep0078.NS_DIALBACK
spade.xmppd.modules.message.NS_DIALBACK
spade.xmppd.modules.muc.NS_DIALBACK
spade.xmppd.modules.oob.NS_DIALBACK
spade.xmppd.modules.pubsub.NS_DIALBACK
spade.xmppd.modules.roster.NS_DIALBACK
spade.xmppd.modules.router.NS_DIALBACK
spade.xmppd.modules.stream.NS_DIALBACK
spade.xmppd.modules.webadmin.NS_DIALBACK
spade.xmppd.modules.wq.NS_DIALBACK
spade.xmppd.xmppd.NS_DIALBACK" class="py-name" href="#" onclick="return doclink('link-207', 'NS_DIALBACK', 'link-207');">NS_DIALBACK</a></tt><tt class="py-op">,</tt><tt id="link-208" class="py-name" targets="Variable spade.Agent.NS_STREAMS=spade.Agent-module.html#NS_STREAMS,Variable spade.MTP.NS_STREAMS=spade.MTP-module.html#NS_STREAMS,Variable spade.Organization.NS_STREAMS=spade.Organization-module.html#NS_STREAMS,Variable spade.Organization_new.NS_STREAMS=spade.Organization_new-module.html#NS_STREAMS,Variable spade.Unit.NS_STREAMS=spade.Unit-module.html#NS_STREAMS,Variable spade.Unit_new.NS_STREAMS=spade.Unit_new-module.html#NS_STREAMS,Variable spade.pubsub.NS_STREAMS=spade.pubsub-module.html#NS_STREAMS,Variable spade.socialnetwork.NS_STREAMS=spade.socialnetwork-module.html#NS_STREAMS,Variable spade.xmpp.NS_STREAMS=spade.xmpp-module.html#NS_STREAMS,Variable spade.xmpp.auth.NS_STREAMS=spade.xmpp.auth-module.html#NS_STREAMS,Variable spade.xmpp.browser.NS_STREAMS=spade.xmpp.browser-module.html#NS_STREAMS,Variable spade.xmpp.commands.NS_STREAMS=spade.xmpp.commands-module.html#NS_STREAMS,Variable spade.xmpp.dispatcher.NS_STREAMS=spade.xmpp.dispatcher-module.html#NS_STREAMS,Variable spade.xmpp.features.NS_STREAMS=spade.xmpp.features-module.html#NS_STREAMS,Variable spade.xmpp.filetransfer.NS_STREAMS=spade.xmpp.filetransfer-module.html#NS_STREAMS,Variable spade.xmpp.protocol.NS_STREAMS=spade.xmpp.protocol-module.html#NS_STREAMS,Variable spade.xmpp.roster.NS_STREAMS=spade.xmpp.roster-module.html#NS_STREAMS,Variable spade.xmpp.transports.NS_STREAMS=spade.xmpp.transports-module.html#NS_STREAMS,Variable spade.xmppd.modules.config.NS_STREAMS=spade.xmppd.modules.config-module.html#NS_STREAMS,Variable spade.xmppd.modules.db_fake.NS_STREAMS=spade.xmppd.modules.db_fake-module.html#NS_STREAMS,Variable spade.xmppd.modules.dialback.NS_STREAMS=spade.xmppd.modules.dialback-module.html#NS_STREAMS,Variable spade.xmppd.modules.jep0077.NS_STREAMS=spade.xmppd.modules.jep0077-module.html#NS_STREAMS,Variable spade.xmppd.modules.jep0078.NS_STREAMS=spade.xmppd.modules.jep0078-module.html#NS_STREAMS,Variable spade.xmppd.modules.message.NS_STREAMS=spade.xmppd.modules.message-module.html#NS_STREAMS,Variable spade.xmppd.modules.muc.NS_STREAMS=spade.xmppd.modules.muc-module.html#NS_STREAMS,Variable spade.xmppd.modules.oob.NS_STREAMS=spade.xmppd.modules.oob-module.html#NS_STREAMS,Variable spade.xmppd.modules.pubsub.NS_STREAMS=spade.xmppd.modules.pubsub-module.html#NS_STREAMS,Variable spade.xmppd.modules.roster.NS_STREAMS=spade.xmppd.modules.roster-module.html#NS_STREAMS,Variable spade.xmppd.modules.router.NS_STREAMS=spade.xmppd.modules.router-module.html#NS_STREAMS,Variable spade.xmppd.modules.stream.NS_STREAMS=spade.xmppd.modules.stream-module.html#NS_STREAMS,Variable spade.xmppd.modules.webadmin.NS_STREAMS=spade.xmppd.modules.webadmin-module.html#NS_STREAMS,Variable spade.xmppd.modules.wq.NS_STREAMS=spade.xmppd.modules.wq-module.html#NS_STREAMS,Variable spade.xmppd.xmppd.NS_STREAMS=spade.xmppd.xmppd-module.html#NS_STREAMS"><a title="spade.Agent.NS_STREAMS
spade.MTP.NS_STREAMS
spade.Organization.NS_STREAMS
spade.Organization_new.NS_STREAMS
spade.Unit.NS_STREAMS
spade.Unit_new.NS_STREAMS
spade.pubsub.NS_STREAMS
spade.socialnetwork.NS_STREAMS
spade.xmpp.NS_STREAMS
spade.xmpp.auth.NS_STREAMS
spade.xmpp.browser.NS_STREAMS
spade.xmpp.commands.NS_STREAMS
spade.xmpp.dispatcher.NS_STREAMS
spade.xmpp.features.NS_STREAMS
spade.xmpp.filetransfer.NS_STREAMS
spade.xmpp.protocol.NS_STREAMS
spade.xmpp.roster.NS_STREAMS
spade.xmpp.transports.NS_STREAMS
spade.xmppd.modules.config.NS_STREAMS
spade.xmppd.modules.db_fake.NS_STREAMS
spade.xmppd.modules.dialback.NS_STREAMS
spade.xmppd.modules.jep0077.NS_STREAMS
spade.xmppd.modules.jep0078.NS_STREAMS
spade.xmppd.modules.message.NS_STREAMS
spade.xmppd.modules.muc.NS_STREAMS
spade.xmppd.modules.oob.NS_STREAMS
spade.xmppd.modules.pubsub.NS_STREAMS
spade.xmppd.modules.roster.NS_STREAMS
spade.xmppd.modules.router.NS_STREAMS
spade.xmppd.modules.stream.NS_STREAMS
spade.xmppd.modules.webadmin.NS_STREAMS
spade.xmppd.modules.wq.NS_STREAMS
spade.xmppd.xmppd.NS_STREAMS" class="py-name" href="#" onclick="return doclink('link-208', 'NS_STREAMS', 'link-208');">NS_STREAMS</a></tt><tt class="py-op">,</tt><tt class="py-name">xmlns</tt><tt class="py-op">)</tt> </tt>
<a name="L443"></a><tt class="py-lineno"> 443</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'version'</tt><tt class="py-op">)</tt> <tt class="py-keyword">or</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">==</tt><tt class="py-string">'client'</tt><tt class="py-op">:</tt> <tt class="py-name">text</tt><tt class="py-op">+=</tt><tt class="py-string">' version="1.0"'</tt> </tt>
<a name="L444"></a><tt class="py-lineno"> 444</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-209" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-209', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt class="py-name">text</tt><tt class="py-op">+</tt><tt class="py-string">'&gt;'</tt><tt class="py-op">)</tt> </tt>
<a name="L445"></a><tt class="py-lineno"> 445</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-210" class="py-name" targets="Method spade.xmpp.session.Session.set_stream_state()=spade.xmpp.session.Session-class.html#set_stream_state,Method spade.xmppd.xmppd.Session.set_stream_state()=spade.xmppd.xmppd.Session-class.html#set_stream_state"><a title="spade.xmpp.session.Session.set_stream_state
spade.xmppd.xmppd.Session.set_stream_state" class="py-name" href="#" onclick="return doclink('link-210', 'set_stream_state', 'link-210');">set_stream_state</a></tt><tt class="py-op">(</tt><tt id="link-211" class="py-name"><a title="spade.xmpp.session.STREAM__OPENED
spade.xmppd.modules.stream.STREAM__OPENED
spade.xmppd.xmppd.STREAM__OPENED" class="py-name" href="#" onclick="return doclink('link-211', 'STREAM__OPENED', 'link-7');">STREAM__OPENED</a></tt><tt class="py-op">)</tt> </tt>
<a name="L446"></a><tt class="py-lineno"> 446</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">==</tt><tt class="py-string">'client'</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L447"></a><tt class="py-lineno"> 447</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">tag</tt><tt class="py-op">&lt;&gt;</tt><tt class="py-string">'stream'</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-212" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-212', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-213" class="py-name"><a title="spade.Agent.STREAM_INVALID_XML
spade.MTP.STREAM_INVALID_XML
spade.Organization.STREAM_INVALID_XML
spade.Organization_new.STREAM_INVALID_XML
spade.Unit.STREAM_INVALID_XML
spade.Unit_new.STREAM_INVALID_XML
spade.pubsub.STREAM_INVALID_XML
spade.socialnetwork.STREAM_INVALID_XML
spade.xmpp.STREAM_INVALID_XML
spade.xmpp.auth.STREAM_INVALID_XML
spade.xmpp.browser.STREAM_INVALID_XML
spade.xmpp.commands.STREAM_INVALID_XML
spade.xmpp.dispatcher.STREAM_INVALID_XML
spade.xmpp.features.STREAM_INVALID_XML
spade.xmpp.filetransfer.STREAM_INVALID_XML
spade.xmpp.protocol.STREAM_INVALID_XML
spade.xmpp.roster.STREAM_INVALID_XML
spade.xmpp.transports.STREAM_INVALID_XML
spade.xmppd.modules.config.STREAM_INVALID_XML
spade.xmppd.modules.db_fake.STREAM_INVALID_XML
spade.xmppd.modules.dialback.STREAM_INVALID_XML
spade.xmppd.modules.jep0077.STREAM_INVALID_XML
spade.xmppd.modules.jep0078.STREAM_INVALID_XML
spade.xmppd.modules.message.STREAM_INVALID_XML
spade.xmppd.modules.muc.STREAM_INVALID_XML
spade.xmppd.modules.oob.STREAM_INVALID_XML
spade.xmppd.modules.pubsub.STREAM_INVALID_XML
spade.xmppd.modules.roster.STREAM_INVALID_XML
spade.xmppd.modules.router.STREAM_INVALID_XML
spade.xmppd.modules.stream.STREAM_INVALID_XML
spade.xmppd.modules.webadmin.STREAM_INVALID_XML
spade.xmppd.modules.wq.STREAM_INVALID_XML
spade.xmppd.xmppd.STREAM_INVALID_XML" class="py-name" href="#" onclick="return doclink('link-213', 'STREAM_INVALID_XML', 'link-197');">STREAM_INVALID_XML</a></tt><tt class="py-op">)</tt> </tt>
<a name="L448"></a><tt class="py-lineno"> 448</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">ns</tt><tt class="py-op">&lt;&gt;</tt><tt id="link-214" class="py-name"><a title="spade.Agent.NS_STREAMS
spade.MTP.NS_STREAMS
spade.Organization.NS_STREAMS
spade.Organization_new.NS_STREAMS
spade.Unit.NS_STREAMS
spade.Unit_new.NS_STREAMS
spade.pubsub.NS_STREAMS
spade.socialnetwork.NS_STREAMS
spade.xmpp.NS_STREAMS
spade.xmpp.auth.NS_STREAMS
spade.xmpp.browser.NS_STREAMS
spade.xmpp.commands.NS_STREAMS
spade.xmpp.dispatcher.NS_STREAMS
spade.xmpp.features.NS_STREAMS
spade.xmpp.filetransfer.NS_STREAMS
spade.xmpp.protocol.NS_STREAMS
spade.xmpp.roster.NS_STREAMS
spade.xmpp.transports.NS_STREAMS
spade.xmppd.modules.config.NS_STREAMS
spade.xmppd.modules.db_fake.NS_STREAMS
spade.xmppd.modules.dialback.NS_STREAMS
spade.xmppd.modules.jep0077.NS_STREAMS
spade.xmppd.modules.jep0078.NS_STREAMS
spade.xmppd.modules.message.NS_STREAMS
spade.xmppd.modules.muc.NS_STREAMS
spade.xmppd.modules.oob.NS_STREAMS
spade.xmppd.modules.pubsub.NS_STREAMS
spade.xmppd.modules.roster.NS_STREAMS
spade.xmppd.modules.router.NS_STREAMS
spade.xmppd.modules.stream.NS_STREAMS
spade.xmppd.modules.webadmin.NS_STREAMS
spade.xmppd.modules.wq.NS_STREAMS
spade.xmppd.xmppd.NS_STREAMS" class="py-name" href="#" onclick="return doclink('link-214', 'NS_STREAMS', 'link-208');">NS_STREAMS</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-215" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-215', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-216" class="py-name" targets="Variable spade.Agent.STREAM_INVALID_NAMESPACE=spade.Agent-module.html#STREAM_INVALID_NAMESPACE,Variable spade.MTP.STREAM_INVALID_NAMESPACE=spade.MTP-module.html#STREAM_INVALID_NAMESPACE,Variable spade.Organization.STREAM_INVALID_NAMESPACE=spade.Organization-module.html#STREAM_INVALID_NAMESPACE,Variable spade.Organization_new.STREAM_INVALID_NAMESPACE=spade.Organization_new-module.html#STREAM_INVALID_NAMESPACE,Variable spade.Unit.STREAM_INVALID_NAMESPACE=spade.Unit-module.html#STREAM_INVALID_NAMESPACE,Variable spade.Unit_new.STREAM_INVALID_NAMESPACE=spade.Unit_new-module.html#STREAM_INVALID_NAMESPACE,Variable spade.pubsub.STREAM_INVALID_NAMESPACE=spade.pubsub-module.html#STREAM_INVALID_NAMESPACE,Variable spade.socialnetwork.STREAM_INVALID_NAMESPACE=spade.socialnetwork-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.STREAM_INVALID_NAMESPACE=spade.xmpp-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.auth.STREAM_INVALID_NAMESPACE=spade.xmpp.auth-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.browser.STREAM_INVALID_NAMESPACE=spade.xmpp.browser-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.commands.STREAM_INVALID_NAMESPACE=spade.xmpp.commands-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.dispatcher.STREAM_INVALID_NAMESPACE=spade.xmpp.dispatcher-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.features.STREAM_INVALID_NAMESPACE=spade.xmpp.features-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.filetransfer.STREAM_INVALID_NAMESPACE=spade.xmpp.filetransfer-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.protocol.STREAM_INVALID_NAMESPACE=spade.xmpp.protocol-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.roster.STREAM_INVALID_NAMESPACE=spade.xmpp.roster-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmpp.transports.STREAM_INVALID_NAMESPACE=spade.xmpp.transports-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.config.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.config-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.db_fake.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.db_fake-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.dialback.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.dialback-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.jep0077.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.jep0077-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.jep0078.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.jep0078-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.message.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.message-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.muc.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.muc-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.oob.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.oob-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.pubsub.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.pubsub-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.roster.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.roster-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.router.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.router-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.stream.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.stream-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.webadmin.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.webadmin-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.modules.wq.STREAM_INVALID_NAMESPACE=spade.xmppd.modules.wq-module.html#STREAM_INVALID_NAMESPACE,Variable spade.xmppd.xmppd.STREAM_INVALID_NAMESPACE=spade.xmppd.xmppd-module.html#STREAM_INVALID_NAMESPACE"><a title="spade.Agent.STREAM_INVALID_NAMESPACE
spade.MTP.STREAM_INVALID_NAMESPACE
spade.Organization.STREAM_INVALID_NAMESPACE
spade.Organization_new.STREAM_INVALID_NAMESPACE
spade.Unit.STREAM_INVALID_NAMESPACE
spade.Unit_new.STREAM_INVALID_NAMESPACE
spade.pubsub.STREAM_INVALID_NAMESPACE
spade.socialnetwork.STREAM_INVALID_NAMESPACE
spade.xmpp.STREAM_INVALID_NAMESPACE
spade.xmpp.auth.STREAM_INVALID_NAMESPACE
spade.xmpp.browser.STREAM_INVALID_NAMESPACE
spade.xmpp.commands.STREAM_INVALID_NAMESPACE
spade.xmpp.dispatcher.STREAM_INVALID_NAMESPACE
spade.xmpp.features.STREAM_INVALID_NAMESPACE
spade.xmpp.filetransfer.STREAM_INVALID_NAMESPACE
spade.xmpp.protocol.STREAM_INVALID_NAMESPACE
spade.xmpp.roster.STREAM_INVALID_NAMESPACE
spade.xmpp.transports.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.config.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.db_fake.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.dialback.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.jep0077.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.jep0078.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.message.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.muc.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.oob.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.pubsub.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.roster.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.router.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.stream.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.webadmin.STREAM_INVALID_NAMESPACE
spade.xmppd.modules.wq.STREAM_INVALID_NAMESPACE
spade.xmppd.xmppd.STREAM_INVALID_NAMESPACE" class="py-name" href="#" onclick="return doclink('link-216', 'STREAM_INVALID_NAMESPACE', 'link-216');">STREAM_INVALID_NAMESPACE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L449"></a><tt class="py-lineno"> 449</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-217" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-217', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt class="py-name">xmlns</tt><tt class="py-op">&lt;&gt;</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">xmlns</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-218" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-218', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-219" class="py-name" targets="Variable spade.Agent.STREAM_BAD_NAMESPACE_PREFIX=spade.Agent-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.MTP.STREAM_BAD_NAMESPACE_PREFIX=spade.MTP-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.Organization.STREAM_BAD_NAMESPACE_PREFIX=spade.Organization-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.Organization_new.STREAM_BAD_NAMESPACE_PREFIX=spade.Organization_new-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.Unit.STREAM_BAD_NAMESPACE_PREFIX=spade.Unit-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.Unit_new.STREAM_BAD_NAMESPACE_PREFIX=spade.Unit_new-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.pubsub.STREAM_BAD_NAMESPACE_PREFIX=spade.pubsub-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.socialnetwork.STREAM_BAD_NAMESPACE_PREFIX=spade.socialnetwork-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.auth.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.auth-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.browser.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.browser-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.commands.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.commands-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.dispatcher.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.dispatcher-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.features.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.features-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.filetransfer.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.filetransfer-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.protocol.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.protocol-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.roster.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.roster-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmpp.transports.STREAM_BAD_NAMESPACE_PREFIX=spade.xmpp.transports-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.config.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.config-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.db_fake.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.db_fake-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.dialback.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.dialback-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.jep0077.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.jep0077-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.jep0078.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.jep0078-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.message.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.message-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.muc.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.muc-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.oob.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.oob-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.pubsub.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.pubsub-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.roster.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.roster-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.router.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.router-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.stream.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.stream-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.webadmin.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.webadmin-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.modules.wq.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.modules.wq-module.html#STREAM_BAD_NAMESPACE_PREFIX,Variable spade.xmppd.xmppd.STREAM_BAD_NAMESPACE_PREFIX=spade.xmppd.xmppd-module.html#STREAM_BAD_NAMESPACE_PREFIX"><a title="spade.Agent.STREAM_BAD_NAMESPACE_PREFIX
spade.MTP.STREAM_BAD_NAMESPACE_PREFIX
spade.Organization.STREAM_BAD_NAMESPACE_PREFIX
spade.Organization_new.STREAM_BAD_NAMESPACE_PREFIX
spade.Unit.STREAM_BAD_NAMESPACE_PREFIX
spade.Unit_new.STREAM_BAD_NAMESPACE_PREFIX
spade.pubsub.STREAM_BAD_NAMESPACE_PREFIX
spade.socialnetwork.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.auth.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.browser.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.commands.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.dispatcher.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.features.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.filetransfer.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.protocol.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.roster.STREAM_BAD_NAMESPACE_PREFIX
spade.xmpp.transports.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.config.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.db_fake.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.dialback.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.jep0077.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.jep0078.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.message.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.muc.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.oob.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.pubsub.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.roster.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.router.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.stream.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.webadmin.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.modules.wq.STREAM_BAD_NAMESPACE_PREFIX
spade.xmppd.xmppd.STREAM_BAD_NAMESPACE_PREFIX" class="py-name" href="#" onclick="return doclink('link-219', 'STREAM_BAD_NAMESPACE_PREFIX', 'link-219');">STREAM_BAD_NAMESPACE_PREFIX</a></tt><tt class="py-op">)</tt> </tt>
<a name="L450"></a><tt class="py-lineno"> 450</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'to'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-220" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-220', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-221" class="py-name" targets="Variable spade.Agent.STREAM_IMPROPER_ADDRESSING=spade.Agent-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.MTP.STREAM_IMPROPER_ADDRESSING=spade.MTP-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.Organization.STREAM_IMPROPER_ADDRESSING=spade.Organization-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.Organization_new.STREAM_IMPROPER_ADDRESSING=spade.Organization_new-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.Unit.STREAM_IMPROPER_ADDRESSING=spade.Unit-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.Unit_new.STREAM_IMPROPER_ADDRESSING=spade.Unit_new-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.pubsub.STREAM_IMPROPER_ADDRESSING=spade.pubsub-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.socialnetwork.STREAM_IMPROPER_ADDRESSING=spade.socialnetwork-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.STREAM_IMPROPER_ADDRESSING=spade.xmpp-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.auth.STREAM_IMPROPER_ADDRESSING=spade.xmpp.auth-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.browser.STREAM_IMPROPER_ADDRESSING=spade.xmpp.browser-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.commands.STREAM_IMPROPER_ADDRESSING=spade.xmpp.commands-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.dispatcher.STREAM_IMPROPER_ADDRESSING=spade.xmpp.dispatcher-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.features.STREAM_IMPROPER_ADDRESSING=spade.xmpp.features-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.filetransfer.STREAM_IMPROPER_ADDRESSING=spade.xmpp.filetransfer-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.protocol.STREAM_IMPROPER_ADDRESSING=spade.xmpp.protocol-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.roster.STREAM_IMPROPER_ADDRESSING=spade.xmpp.roster-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmpp.transports.STREAM_IMPROPER_ADDRESSING=spade.xmpp.transports-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.config.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.config-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.db_fake.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.db_fake-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.dialback.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.dialback-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.jep0077.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.jep0077-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.jep0078.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.jep0078-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.message.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.message-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.muc.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.muc-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.oob.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.oob-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.pubsub.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.pubsub-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.roster.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.roster-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.router.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.router-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.stream.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.stream-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.webadmin.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.webadmin-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.modules.wq.STREAM_IMPROPER_ADDRESSING=spade.xmppd.modules.wq-module.html#STREAM_IMPROPER_ADDRESSING,Variable spade.xmppd.xmppd.STREAM_IMPROPER_ADDRESSING=spade.xmppd.xmppd-module.html#STREAM_IMPROPER_ADDRESSING"><a title="spade.Agent.STREAM_IMPROPER_ADDRESSING
spade.MTP.STREAM_IMPROPER_ADDRESSING
spade.Organization.STREAM_IMPROPER_ADDRESSING
spade.Organization_new.STREAM_IMPROPER_ADDRESSING
spade.Unit.STREAM_IMPROPER_ADDRESSING
spade.Unit_new.STREAM_IMPROPER_ADDRESSING
spade.pubsub.STREAM_IMPROPER_ADDRESSING
spade.socialnetwork.STREAM_IMPROPER_ADDRESSING
spade.xmpp.STREAM_IMPROPER_ADDRESSING
spade.xmpp.auth.STREAM_IMPROPER_ADDRESSING
spade.xmpp.browser.STREAM_IMPROPER_ADDRESSING
spade.xmpp.commands.STREAM_IMPROPER_ADDRESSING
spade.xmpp.dispatcher.STREAM_IMPROPER_ADDRESSING
spade.xmpp.features.STREAM_IMPROPER_ADDRESSING
spade.xmpp.filetransfer.STREAM_IMPROPER_ADDRESSING
spade.xmpp.protocol.STREAM_IMPROPER_ADDRESSING
spade.xmpp.roster.STREAM_IMPROPER_ADDRESSING
spade.xmpp.transports.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.config.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.db_fake.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.dialback.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.jep0077.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.jep0078.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.message.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.muc.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.oob.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.pubsub.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.roster.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.router.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.stream.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.webadmin.STREAM_IMPROPER_ADDRESSING
spade.xmppd.modules.wq.STREAM_IMPROPER_ADDRESSING
spade.xmppd.xmppd.STREAM_IMPROPER_ADDRESSING" class="py-name" href="#" onclick="return doclink('link-221', 'STREAM_IMPROPER_ADDRESSING', 'link-221');">STREAM_IMPROPER_ADDRESSING</a></tt><tt class="py-op">)</tt> </tt>
<a name="L451"></a><tt class="py-lineno"> 451</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-222" class="py-name"><a title="spade.xmppd.modules.config.servernames" class="py-name" href="#" onclick="return doclink('link-222', 'servernames', 'link-201');">servernames</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-223" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-223', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-224" class="py-name" targets="Variable spade.Agent.STREAM_HOST_UNKNOWN=spade.Agent-module.html#STREAM_HOST_UNKNOWN,Variable spade.MTP.STREAM_HOST_UNKNOWN=spade.MTP-module.html#STREAM_HOST_UNKNOWN,Variable spade.Organization.STREAM_HOST_UNKNOWN=spade.Organization-module.html#STREAM_HOST_UNKNOWN,Variable spade.Organization_new.STREAM_HOST_UNKNOWN=spade.Organization_new-module.html#STREAM_HOST_UNKNOWN,Variable spade.Unit.STREAM_HOST_UNKNOWN=spade.Unit-module.html#STREAM_HOST_UNKNOWN,Variable spade.Unit_new.STREAM_HOST_UNKNOWN=spade.Unit_new-module.html#STREAM_HOST_UNKNOWN,Variable spade.pubsub.STREAM_HOST_UNKNOWN=spade.pubsub-module.html#STREAM_HOST_UNKNOWN,Variable spade.socialnetwork.STREAM_HOST_UNKNOWN=spade.socialnetwork-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.STREAM_HOST_UNKNOWN=spade.xmpp-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.auth.STREAM_HOST_UNKNOWN=spade.xmpp.auth-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.browser.STREAM_HOST_UNKNOWN=spade.xmpp.browser-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.commands.STREAM_HOST_UNKNOWN=spade.xmpp.commands-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.dispatcher.STREAM_HOST_UNKNOWN=spade.xmpp.dispatcher-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.features.STREAM_HOST_UNKNOWN=spade.xmpp.features-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.filetransfer.STREAM_HOST_UNKNOWN=spade.xmpp.filetransfer-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.protocol.STREAM_HOST_UNKNOWN=spade.xmpp.protocol-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.roster.STREAM_HOST_UNKNOWN=spade.xmpp.roster-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmpp.transports.STREAM_HOST_UNKNOWN=spade.xmpp.transports-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.config.STREAM_HOST_UNKNOWN=spade.xmppd.modules.config-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.db_fake.STREAM_HOST_UNKNOWN=spade.xmppd.modules.db_fake-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.dialback.STREAM_HOST_UNKNOWN=spade.xmppd.modules.dialback-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.jep0077.STREAM_HOST_UNKNOWN=spade.xmppd.modules.jep0077-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.jep0078.STREAM_HOST_UNKNOWN=spade.xmppd.modules.jep0078-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.message.STREAM_HOST_UNKNOWN=spade.xmppd.modules.message-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.muc.STREAM_HOST_UNKNOWN=spade.xmppd.modules.muc-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.oob.STREAM_HOST_UNKNOWN=spade.xmppd.modules.oob-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.pubsub.STREAM_HOST_UNKNOWN=spade.xmppd.modules.pubsub-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.roster.STREAM_HOST_UNKNOWN=spade.xmppd.modules.roster-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.router.STREAM_HOST_UNKNOWN=spade.xmppd.modules.router-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.stream.STREAM_HOST_UNKNOWN=spade.xmppd.modules.stream-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.webadmin.STREAM_HOST_UNKNOWN=spade.xmppd.modules.webadmin-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.modules.wq.STREAM_HOST_UNKNOWN=spade.xmppd.modules.wq-module.html#STREAM_HOST_UNKNOWN,Variable spade.xmppd.xmppd.STREAM_HOST_UNKNOWN=spade.xmppd.xmppd-module.html#STREAM_HOST_UNKNOWN"><a title="spade.Agent.STREAM_HOST_UNKNOWN
spade.MTP.STREAM_HOST_UNKNOWN
spade.Organization.STREAM_HOST_UNKNOWN
spade.Organization_new.STREAM_HOST_UNKNOWN
spade.Unit.STREAM_HOST_UNKNOWN
spade.Unit_new.STREAM_HOST_UNKNOWN
spade.pubsub.STREAM_HOST_UNKNOWN
spade.socialnetwork.STREAM_HOST_UNKNOWN
spade.xmpp.STREAM_HOST_UNKNOWN
spade.xmpp.auth.STREAM_HOST_UNKNOWN
spade.xmpp.browser.STREAM_HOST_UNKNOWN
spade.xmpp.commands.STREAM_HOST_UNKNOWN
spade.xmpp.dispatcher.STREAM_HOST_UNKNOWN
spade.xmpp.features.STREAM_HOST_UNKNOWN
spade.xmpp.filetransfer.STREAM_HOST_UNKNOWN
spade.xmpp.protocol.STREAM_HOST_UNKNOWN
spade.xmpp.roster.STREAM_HOST_UNKNOWN
spade.xmpp.transports.STREAM_HOST_UNKNOWN
spade.xmppd.modules.config.STREAM_HOST_UNKNOWN
spade.xmppd.modules.db_fake.STREAM_HOST_UNKNOWN
spade.xmppd.modules.dialback.STREAM_HOST_UNKNOWN
spade.xmppd.modules.jep0077.STREAM_HOST_UNKNOWN
spade.xmppd.modules.jep0078.STREAM_HOST_UNKNOWN
spade.xmppd.modules.message.STREAM_HOST_UNKNOWN
spade.xmppd.modules.muc.STREAM_HOST_UNKNOWN
spade.xmppd.modules.oob.STREAM_HOST_UNKNOWN
spade.xmppd.modules.pubsub.STREAM_HOST_UNKNOWN
spade.xmppd.modules.roster.STREAM_HOST_UNKNOWN
spade.xmppd.modules.router.STREAM_HOST_UNKNOWN
spade.xmppd.modules.stream.STREAM_HOST_UNKNOWN
spade.xmppd.modules.webadmin.STREAM_HOST_UNKNOWN
spade.xmppd.modules.wq.STREAM_HOST_UNKNOWN
spade.xmppd.xmppd.STREAM_HOST_UNKNOWN" class="py-name" href="#" onclick="return doclink('link-224', 'STREAM_HOST_UNKNOWN', 'link-224');">STREAM_HOST_UNKNOWN</a></tt><tt class="py-op">)</tt> </tt>
<a name="L452"></a><tt class="py-lineno"> 452</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">ourname</tt><tt class="py-op">=</tt><tt class="py-name">attrs</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L453"></a><tt class="py-lineno"> 453</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">TYP</tt><tt class="py-op">==</tt><tt class="py-string">'server'</tt> <tt class="py-keyword">and</tt> <tt class="py-name">attrs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'version'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-225" class="py-name" targets="Method spade.xmppd.xmppd.Session.send_features()=spade.xmppd.xmppd.Session-class.html#send_features"><a title="spade.xmppd.xmppd.Session.send_features" class="py-name" href="#" onclick="return doclink('link-225', 'send_features', 'link-225');">send_features</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L454"></a><tt class="py-lineno"> 454</tt>  <tt class="py-line"> </tt>
<a name="Session.send_features"></a><div id="Session.send_features-def"><a name="L455"></a><tt class="py-lineno"> 455</tt> <a class="py-toggle" href="#" id="Session.send_features-toggle" onclick="return toggle('Session.send_features');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#send_features">send_features</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.send_features-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.send_features-expanded"><a name="L456"></a><tt class="py-lineno"> 456</tt>  <tt class="py-line">        <tt id="link-226" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-226', 'features', 'link-123');">features</a></tt><tt class="py-op">=</tt><tt id="link-227" class="py-name"><a title="spade.xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-227', 'Node', 'link-152');">Node</a></tt><tt class="py-op">(</tt><tt class="py-string">'stream:features'</tt><tt class="py-op">)</tt> </tt>
<a name="L457"></a><tt class="py-lineno"> 457</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-228" class="py-name"><a title="spade.Agent.NS_TLS
spade.MTP.NS_TLS
spade.Organization.NS_TLS
spade.Organization_new.NS_TLS
spade.Unit.NS_TLS
spade.Unit_new.NS_TLS
spade.pubsub.NS_TLS
spade.socialnetwork.NS_TLS
spade.xmpp.NS_TLS
spade.xmpp.auth.NS_TLS
spade.xmpp.browser.NS_TLS
spade.xmpp.commands.NS_TLS
spade.xmpp.dispatcher.NS_TLS
spade.xmpp.features.NS_TLS
spade.xmpp.filetransfer.NS_TLS
spade.xmpp.protocol.NS_TLS
spade.xmpp.roster.NS_TLS
spade.xmpp.transports.NS_TLS
spade.xmppd.modules.config.NS_TLS
spade.xmppd.modules.db_fake.NS_TLS
spade.xmppd.modules.dialback.NS_TLS
spade.xmppd.modules.jep0077.NS_TLS
spade.xmppd.modules.jep0078.NS_TLS
spade.xmppd.modules.message.NS_TLS
spade.xmppd.modules.muc.NS_TLS
spade.xmppd.modules.oob.NS_TLS
spade.xmppd.modules.pubsub.NS_TLS
spade.xmppd.modules.roster.NS_TLS
spade.xmppd.modules.router.NS_TLS
spade.xmppd.modules.stream.NS_TLS
spade.xmppd.modules.webadmin.NS_TLS
spade.xmppd.modules.wq.NS_TLS
spade.xmppd.xmppd.NS_TLS" class="py-name" href="#" onclick="return doclink('link-228', 'NS_TLS', 'link-118');">NS_TLS</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">:</tt> </tt>
<a name="L458"></a><tt class="py-lineno"> 458</tt>  <tt class="py-line">            <tt id="link-229" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-229', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-230" class="py-name" targets="Class spade.xmpp.simplexml.NT=spade.xmpp.simplexml.NT-class.html"><a title="spade.xmpp.simplexml.NT" class="py-name" href="#" onclick="return doclink('link-230', 'NT', 'link-230');">NT</a></tt><tt class="py-op">.</tt><tt class="py-name">starttls</tt><tt class="py-op">.</tt><tt id="link-231" class="py-name" targets="Method spade.xmpp.simplexml.Node.setNamespace()=spade.xmpp.simplexml.Node-class.html#setNamespace"><a title="spade.xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-231', 'setNamespace', 'link-231');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-232" class="py-name"><a title="spade.Agent.NS_TLS
spade.MTP.NS_TLS
spade.Organization.NS_TLS
spade.Organization_new.NS_TLS
spade.Unit.NS_TLS
spade.Unit_new.NS_TLS
spade.pubsub.NS_TLS
spade.socialnetwork.NS_TLS
spade.xmpp.NS_TLS
spade.xmpp.auth.NS_TLS
spade.xmpp.browser.NS_TLS
spade.xmpp.commands.NS_TLS
spade.xmpp.dispatcher.NS_TLS
spade.xmpp.features.NS_TLS
spade.xmpp.filetransfer.NS_TLS
spade.xmpp.protocol.NS_TLS
spade.xmpp.roster.NS_TLS
spade.xmpp.transports.NS_TLS
spade.xmppd.modules.config.NS_TLS
spade.xmppd.modules.db_fake.NS_TLS
spade.xmppd.modules.dialback.NS_TLS
spade.xmppd.modules.jep0077.NS_TLS
spade.xmppd.modules.jep0078.NS_TLS
spade.xmppd.modules.message.NS_TLS
spade.xmppd.modules.muc.NS_TLS
spade.xmppd.modules.oob.NS_TLS
spade.xmppd.modules.pubsub.NS_TLS
spade.xmppd.modules.roster.NS_TLS
spade.xmppd.modules.router.NS_TLS
spade.xmppd.modules.stream.NS_TLS
spade.xmppd.modules.webadmin.NS_TLS
spade.xmppd.modules.wq.NS_TLS
spade.xmppd.xmppd.NS_TLS" class="py-name" href="#" onclick="return doclink('link-232', 'NS_TLS', 'link-118');">NS_TLS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L459"></a><tt class="py-lineno"> 459</tt>  <tt class="py-line">            <tt id="link-233" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-233', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-234" class="py-name" targets="Class spade.xmpp.simplexml.T=spade.xmpp.simplexml.T-class.html"><a title="spade.xmpp.simplexml.T" class="py-name" href="#" onclick="return doclink('link-234', 'T', 'link-234');">T</a></tt><tt class="py-op">.</tt><tt class="py-name">starttls</tt><tt class="py-op">.</tt><tt id="link-235" class="py-name"><a title="spade.xmpp.simplexml.NT" class="py-name" href="#" onclick="return doclink('link-235', 'NT', 'link-230');">NT</a></tt><tt class="py-op">.</tt><tt class="py-name">required</tt> </tt>
<a name="L460"></a><tt class="py-lineno"> 460</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-236" class="py-name"><a title="spade.Agent.NS_SASL
spade.MTP.NS_SASL
spade.Organization.NS_SASL
spade.Organization_new.NS_SASL
spade.Unit.NS_SASL
spade.Unit_new.NS_SASL
spade.pubsub.NS_SASL
spade.socialnetwork.NS_SASL
spade.xmpp.NS_SASL
spade.xmpp.auth.NS_SASL
spade.xmpp.browser.NS_SASL
spade.xmpp.commands.NS_SASL
spade.xmpp.dispatcher.NS_SASL
spade.xmpp.features.NS_SASL
spade.xmpp.filetransfer.NS_SASL
spade.xmpp.protocol.NS_SASL
spade.xmpp.roster.NS_SASL
spade.xmpp.transports.NS_SASL
spade.xmppd.modules.config.NS_SASL
spade.xmppd.modules.db_fake.NS_SASL
spade.xmppd.modules.dialback.NS_SASL
spade.xmppd.modules.jep0077.NS_SASL
spade.xmppd.modules.jep0078.NS_SASL
spade.xmppd.modules.message.NS_SASL
spade.xmppd.modules.muc.NS_SASL
spade.xmppd.modules.oob.NS_SASL
spade.xmppd.modules.pubsub.NS_SASL
spade.xmppd.modules.roster.NS_SASL
spade.xmppd.modules.router.NS_SASL
spade.xmppd.modules.stream.NS_SASL
spade.xmppd.modules.webadmin.NS_SASL
spade.xmppd.modules.wq.NS_SASL
spade.xmppd.xmppd.NS_SASL" class="py-name" href="#" onclick="return doclink('link-236', 'NS_SASL', 'link-119');">NS_SASL</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">:</tt> </tt>
<a name="L461"></a><tt class="py-lineno"> 461</tt>  <tt class="py-line">            <tt id="link-237" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-237', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-238" class="py-name"><a title="spade.xmpp.simplexml.NT" class="py-name" href="#" onclick="return doclink('link-238', 'NT', 'link-230');">NT</a></tt><tt class="py-op">.</tt><tt class="py-name">mechanisms</tt><tt class="py-op">.</tt><tt id="link-239" class="py-name"><a title="spade.xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-239', 'setNamespace', 'link-231');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-240" class="py-name"><a title="spade.Agent.NS_SASL
spade.MTP.NS_SASL
spade.Organization.NS_SASL
spade.Organization_new.NS_SASL
spade.Unit.NS_SASL
spade.Unit_new.NS_SASL
spade.pubsub.NS_SASL
spade.socialnetwork.NS_SASL
spade.xmpp.NS_SASL
spade.xmpp.auth.NS_SASL
spade.xmpp.browser.NS_SASL
spade.xmpp.commands.NS_SASL
spade.xmpp.dispatcher.NS_SASL
spade.xmpp.features.NS_SASL
spade.xmpp.filetransfer.NS_SASL
spade.xmpp.protocol.NS_SASL
spade.xmpp.roster.NS_SASL
spade.xmpp.transports.NS_SASL
spade.xmppd.modules.config.NS_SASL
spade.xmppd.modules.db_fake.NS_SASL
spade.xmppd.modules.dialback.NS_SASL
spade.xmppd.modules.jep0077.NS_SASL
spade.xmppd.modules.jep0078.NS_SASL
spade.xmppd.modules.message.NS_SASL
spade.xmppd.modules.muc.NS_SASL
spade.xmppd.modules.oob.NS_SASL
spade.xmppd.modules.pubsub.NS_SASL
spade.xmppd.modules.roster.NS_SASL
spade.xmppd.modules.router.NS_SASL
spade.xmppd.modules.stream.NS_SASL
spade.xmppd.modules.webadmin.NS_SASL
spade.xmppd.modules.wq.NS_SASL
spade.xmppd.xmppd.NS_SASL" class="py-name" href="#" onclick="return doclink('link-240', 'NS_SASL', 'link-119');">NS_SASL</a></tt><tt class="py-op">)</tt> </tt>
<a name="L462"></a><tt class="py-lineno"> 462</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">mec</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-241" class="py-name" targets="Class spade.xmpp.auth.SASL=spade.xmpp.auth.SASL-class.html,Class spade.xmppd.modules.stream.SASL=spade.xmppd.modules.stream.SASL-class.html"><a title="spade.xmpp.auth.SASL
spade.xmppd.modules.stream.SASL" class="py-name" href="#" onclick="return doclink('link-241', 'SASL', 'link-241');">SASL</a></tt><tt class="py-op">.</tt><tt class="py-name">mechanisms</tt><tt class="py-op">:</tt> </tt>
<a name="L463"></a><tt class="py-lineno"> 463</tt>  <tt class="py-line">                <tt id="link-242" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-242', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-243" class="py-name"><a title="spade.xmpp.simplexml.T" class="py-name" href="#" onclick="return doclink('link-243', 'T', 'link-234');">T</a></tt><tt class="py-op">.</tt><tt class="py-name">mechanisms</tt><tt class="py-op">.</tt><tt id="link-244" class="py-name"><a title="spade.xmpp.simplexml.NT" class="py-name" href="#" onclick="return doclink('link-244', 'NT', 'link-230');">NT</a></tt><tt class="py-op">.</tt><tt class="py-name">mechanism</tt><tt class="py-op">=</tt><tt class="py-name">mec</tt> </tt>
<a name="L464"></a><tt class="py-lineno"> 464</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L465"></a><tt class="py-lineno"> 465</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-245" class="py-name"><a title="spade.Agent.NS_BIND
spade.MTP.NS_BIND
spade.Organization.NS_BIND
spade.Organization_new.NS_BIND
spade.Unit.NS_BIND
spade.Unit_new.NS_BIND
spade.pubsub.NS_BIND
spade.socialnetwork.NS_BIND
spade.xmpp.NS_BIND
spade.xmpp.auth.NS_BIND
spade.xmpp.browser.NS_BIND
spade.xmpp.commands.NS_BIND
spade.xmpp.dispatcher.NS_BIND
spade.xmpp.features.NS_BIND
spade.xmpp.filetransfer.NS_BIND
spade.xmpp.protocol.NS_BIND
spade.xmpp.roster.NS_BIND
spade.xmpp.transports.NS_BIND
spade.xmppd.modules.config.NS_BIND
spade.xmppd.modules.db_fake.NS_BIND
spade.xmppd.modules.dialback.NS_BIND
spade.xmppd.modules.jep0077.NS_BIND
spade.xmppd.modules.jep0078.NS_BIND
spade.xmppd.modules.message.NS_BIND
spade.xmppd.modules.muc.NS_BIND
spade.xmppd.modules.oob.NS_BIND
spade.xmppd.modules.pubsub.NS_BIND
spade.xmppd.modules.roster.NS_BIND
spade.xmppd.modules.router.NS_BIND
spade.xmppd.modules.stream.NS_BIND
spade.xmppd.modules.webadmin.NS_BIND
spade.xmppd.modules.wq.NS_BIND
spade.xmppd.xmppd.NS_BIND" class="py-name" href="#" onclick="return doclink('link-245', 'NS_BIND', 'link-120');">NS_BIND</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">:</tt> <tt id="link-246" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-246', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-247" class="py-name"><a title="spade.xmpp.simplexml.NT" class="py-name" href="#" onclick="return doclink('link-247', 'NT', 'link-230');">NT</a></tt><tt class="py-op">.</tt><tt class="py-name">bind</tt><tt class="py-op">.</tt><tt id="link-248" class="py-name"><a title="spade.xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-248', 'setNamespace', 'link-231');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-249" class="py-name"><a title="spade.Agent.NS_BIND
spade.MTP.NS_BIND
spade.Organization.NS_BIND
spade.Organization_new.NS_BIND
spade.Unit.NS_BIND
spade.Unit_new.NS_BIND
spade.pubsub.NS_BIND
spade.socialnetwork.NS_BIND
spade.xmpp.NS_BIND
spade.xmpp.auth.NS_BIND
spade.xmpp.browser.NS_BIND
spade.xmpp.commands.NS_BIND
spade.xmpp.dispatcher.NS_BIND
spade.xmpp.features.NS_BIND
spade.xmpp.filetransfer.NS_BIND
spade.xmpp.protocol.NS_BIND
spade.xmpp.roster.NS_BIND
spade.xmpp.transports.NS_BIND
spade.xmppd.modules.config.NS_BIND
spade.xmppd.modules.db_fake.NS_BIND
spade.xmppd.modules.dialback.NS_BIND
spade.xmppd.modules.jep0077.NS_BIND
spade.xmppd.modules.jep0078.NS_BIND
spade.xmppd.modules.message.NS_BIND
spade.xmppd.modules.muc.NS_BIND
spade.xmppd.modules.oob.NS_BIND
spade.xmppd.modules.pubsub.NS_BIND
spade.xmppd.modules.roster.NS_BIND
spade.xmppd.modules.router.NS_BIND
spade.xmppd.modules.stream.NS_BIND
spade.xmppd.modules.webadmin.NS_BIND
spade.xmppd.modules.wq.NS_BIND
spade.xmppd.xmppd.NS_BIND" class="py-name" href="#" onclick="return doclink('link-249', 'NS_BIND', 'link-120');">NS_BIND</a></tt><tt class="py-op">)</tt> </tt>
<a name="L466"></a><tt class="py-lineno"> 466</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-250" class="py-name"><a title="spade.Agent.NS_SESSION
spade.MTP.NS_SESSION
spade.Organization.NS_SESSION
spade.Organization_new.NS_SESSION
spade.Unit.NS_SESSION
spade.Unit_new.NS_SESSION
spade.pubsub.NS_SESSION
spade.socialnetwork.NS_SESSION
spade.xmpp.NS_SESSION
spade.xmpp.auth.NS_SESSION
spade.xmpp.browser.NS_SESSION
spade.xmpp.commands.NS_SESSION
spade.xmpp.dispatcher.NS_SESSION
spade.xmpp.features.NS_SESSION
spade.xmpp.filetransfer.NS_SESSION
spade.xmpp.protocol.NS_SESSION
spade.xmpp.roster.NS_SESSION
spade.xmpp.transports.NS_SESSION
spade.xmppd.modules.config.NS_SESSION
spade.xmppd.modules.db_fake.NS_SESSION
spade.xmppd.modules.dialback.NS_SESSION
spade.xmppd.modules.jep0077.NS_SESSION
spade.xmppd.modules.jep0078.NS_SESSION
spade.xmppd.modules.message.NS_SESSION
spade.xmppd.modules.muc.NS_SESSION
spade.xmppd.modules.oob.NS_SESSION
spade.xmppd.modules.pubsub.NS_SESSION
spade.xmppd.modules.roster.NS_SESSION
spade.xmppd.modules.router.NS_SESSION
spade.xmppd.modules.stream.NS_SESSION
spade.xmppd.modules.webadmin.NS_SESSION
spade.xmppd.modules.wq.NS_SESSION
spade.xmppd.xmppd.NS_SESSION" class="py-name" href="#" onclick="return doclink('link-250', 'NS_SESSION', 'link-121');">NS_SESSION</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">:</tt> <tt id="link-251" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-251', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-252" class="py-name"><a title="spade.xmpp.simplexml.NT" class="py-name" href="#" onclick="return doclink('link-252', 'NT', 'link-230');">NT</a></tt><tt class="py-op">.</tt><tt id="link-253" class="py-name" targets="Module spade.xmpp.session=spade.xmpp.session-module.html"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-253', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-254" class="py-name"><a title="spade.xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-254', 'setNamespace', 'link-231');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-255" class="py-name"><a title="spade.Agent.NS_SESSION
spade.MTP.NS_SESSION
spade.Organization.NS_SESSION
spade.Organization_new.NS_SESSION
spade.Unit.NS_SESSION
spade.Unit_new.NS_SESSION
spade.pubsub.NS_SESSION
spade.socialnetwork.NS_SESSION
spade.xmpp.NS_SESSION
spade.xmpp.auth.NS_SESSION
spade.xmpp.browser.NS_SESSION
spade.xmpp.commands.NS_SESSION
spade.xmpp.dispatcher.NS_SESSION
spade.xmpp.features.NS_SESSION
spade.xmpp.filetransfer.NS_SESSION
spade.xmpp.protocol.NS_SESSION
spade.xmpp.roster.NS_SESSION
spade.xmpp.transports.NS_SESSION
spade.xmppd.modules.config.NS_SESSION
spade.xmppd.modules.db_fake.NS_SESSION
spade.xmppd.modules.dialback.NS_SESSION
spade.xmppd.modules.jep0077.NS_SESSION
spade.xmppd.modules.jep0078.NS_SESSION
spade.xmppd.modules.message.NS_SESSION
spade.xmppd.modules.muc.NS_SESSION
spade.xmppd.modules.oob.NS_SESSION
spade.xmppd.modules.pubsub.NS_SESSION
spade.xmppd.modules.roster.NS_SESSION
spade.xmppd.modules.router.NS_SESSION
spade.xmppd.modules.stream.NS_SESSION
spade.xmppd.modules.webadmin.NS_SESSION
spade.xmppd.modules.wq.NS_SESSION
spade.xmppd.xmppd.NS_SESSION" class="py-name" href="#" onclick="return doclink('link-255', 'NS_SESSION', 'link-121');">NS_SESSION</a></tt><tt class="py-op">)</tt> </tt>
<a name="L467"></a><tt class="py-lineno"> 467</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-256" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-256', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt id="link-257" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-257', 'features', 'link-123');">features</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L468"></a><tt class="py-lineno"> 468</tt>  <tt class="py-line"> </tt>
<a name="Session.getResource"></a><div id="Session.getResource-def"><a name="L469"></a><tt class="py-lineno"> 469</tt> <a class="py-toggle" href="#" id="Session.getResource-toggle" onclick="return toggle('Session.getResource');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#getResource">getResource</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.getResource-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.getResource-expanded"><a name="L470"></a><tt class="py-lineno"> 470</tt>  <tt class="py-line">        <tt class="py-name">jid</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt> </tt>
<a name="L471"></a><tt class="py-lineno"> 471</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">barejid</tt><tt class="py-op">,</tt><tt class="py-name">resource</tt><tt class="py-op">=</tt><tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'/'</tt><tt class="py-op">)</tt> </tt>
<a name="L472"></a><tt class="py-lineno"> 472</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L473"></a><tt class="py-lineno"> 473</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">resource</tt> </tt>
</div><a name="L474"></a><tt class="py-lineno"> 474</tt>  <tt class="py-line"> </tt>
<a name="Session.getRoster"></a><div id="Session.getRoster-def"><a name="L475"></a><tt class="py-lineno"> 475</tt> <a class="py-toggle" href="#" id="Session.getRoster-toggle" onclick="return toggle('Session.getRoster');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#getRoster">getRoster</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.getRoster-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.getRoster-expanded"><a name="L476"></a><tt class="py-lineno"> 476</tt>  <tt class="py-line">        <tt class="py-name">split_jid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-258" class="py-name" targets="Method spade.xmppd.xmppd.Session.getSplitJID()=spade.xmppd.xmppd.Session-class.html#getSplitJID"><a title="spade.xmppd.xmppd.Session.getSplitJID" class="py-name" href="#" onclick="return doclink('link-258', 'getSplitJID', 'link-258');">getSplitJID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L477"></a><tt class="py-lineno"> 477</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-259" class="py-name" targets="Class spade.xmppd.modules.db_fake.DB=spade.xmppd.modules.db_fake.DB-class.html"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-259', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-260" class="py-name" targets="Method spade.FlexQueue.FlexQueue.get()=spade.FlexQueue.FlexQueue-class.html#get,Method spade.kb.KB.get()=spade.kb.KB-class.html#get,Method spade.tbcbp.CaseDB.get()=spade.tbcbp.CaseDB-class.html#get,Method spade.xmppd.modules.db_fake.DB.get()=spade.xmppd.modules.db_fake.DB-class.html#get"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-260', 'get', 'link-260');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'roster'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L478"></a><tt class="py-lineno"> 478</tt>  <tt class="py-line"> </tt>
<a name="Session.getGroups"></a><div id="Session.getGroups-def"><a name="L479"></a><tt class="py-lineno"> 479</tt> <a class="py-toggle" href="#" id="Session.getGroups-toggle" onclick="return toggle('Session.getGroups');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#getGroups">getGroups</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.getGroups-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.getGroups-expanded"><a name="L480"></a><tt class="py-lineno"> 480</tt>  <tt class="py-line">        <tt class="py-name">split_jid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-261" class="py-name"><a title="spade.xmppd.xmppd.Session.getSplitJID" class="py-name" href="#" onclick="return doclink('link-261', 'getSplitJID', 'link-258');">getSplitJID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L481"></a><tt class="py-lineno"> 481</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-262" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-262', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-263" class="py-name"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-263', 'get', 'link-260');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'groups'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L482"></a><tt class="py-lineno"> 482</tt>  <tt class="py-line"> </tt>
<a name="Session.getName"></a><div id="Session.getName-def"><a name="L483"></a><tt class="py-lineno"> 483</tt> <a class="py-toggle" href="#" id="Session.getName-toggle" onclick="return toggle('Session.getName');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#getName">getName</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.getName-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.getName-expanded"><a name="L484"></a><tt class="py-lineno"> 484</tt>  <tt class="py-line">        <tt class="py-name">split_jid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-264" class="py-name"><a title="spade.xmppd.xmppd.Session.getSplitJID" class="py-name" href="#" onclick="return doclink('link-264', 'getSplitJID', 'link-258');">getSplitJID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L485"></a><tt class="py-lineno"> 485</tt>  <tt class="py-line">        <tt id="link-265" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-265', 'name', 'link-97');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-266" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-266', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-267" class="py-name"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-267', 'get', 'link-260');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'name'</tt><tt class="py-op">)</tt> </tt>
<a name="L486"></a><tt class="py-lineno"> 486</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-268" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-268', 'name', 'link-97');">name</a></tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt id="link-269" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-269', 'name', 'link-97');">name</a></tt> <tt class="py-op">=</tt> <tt class="py-string">'%s@%s'</tt><tt class="py-op">%</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">:</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L487"></a><tt class="py-lineno"> 487</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt id="link-270" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-270', 'name', 'link-97');">name</a></tt> </tt>
</div><a name="L488"></a><tt class="py-lineno"> 488</tt>  <tt class="py-line"> </tt>
<a name="Session.getSplitJID"></a><div id="Session.getSplitJID-def"><a name="L489"></a><tt class="py-lineno"> 489</tt> <a class="py-toggle" href="#" id="Session.getSplitJID-toggle" onclick="return toggle('Session.getSplitJID');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#getSplitJID">getSplitJID</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.getSplitJID-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.getSplitJID-expanded"><a name="L490"></a><tt class="py-lineno"> 490</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-271" class="py-name" targets="Method spade.xmppd.xmppd.Server.tool_split_jid()=spade.xmppd.xmppd.Server-class.html#tool_split_jid"><a title="spade.xmppd.xmppd.Server.tool_split_jid" class="py-name" href="#" onclick="return doclink('link-271', 'tool_split_jid', 'link-271');">tool_split_jid</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt> </tt>
</div><a name="L491"></a><tt class="py-lineno"> 491</tt>  <tt class="py-line"> </tt>
<a name="Session.getBareJID"></a><div id="Session.getBareJID-def"><a name="L492"></a><tt class="py-lineno"> 492</tt> <a class="py-toggle" href="#" id="Session.getBareJID-toggle" onclick="return toggle('Session.getBareJID');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#getBareJID">getBareJID</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.getBareJID-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.getBareJID-expanded"><a name="L493"></a><tt class="py-lineno"> 493</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L494"></a><tt class="py-lineno"> 494</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-string">'%s@%s'</tt><tt class="py-op">%</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-272" class="py-name"><a title="spade.xmppd.xmppd.Session.getSplitJID" class="py-name" href="#" onclick="return doclink('link-272', 'getSplitJID', 'link-258');">getSplitJID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">:</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L495"></a><tt class="py-lineno"> 495</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L496"></a><tt class="py-lineno"> 496</tt>  <tt class="py-line">                <tt class="py-comment"># Component JID</tt> </tt>
<a name="L497"></a><tt class="py-lineno"> 497</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">"/"</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
</div><a name="L498"></a><tt class="py-lineno"> 498</tt>  <tt class="py-line"> </tt>
<a name="Session.getKarma"></a><div id="Session.getKarma-def"><a name="L499"></a><tt class="py-lineno"> 499</tt> <a class="py-toggle" href="#" id="Session.getKarma-toggle" onclick="return toggle('Session.getKarma');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#getKarma">getKarma</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.getKarma-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.getKarma-expanded"><a name="L500"></a><tt class="py-lineno"> 500</tt>  <tt class="py-line">        <tt class="py-name">split_jid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-273" class="py-name"><a title="spade.xmppd.xmppd.Session.getSplitJID" class="py-name" href="#" onclick="return doclink('link-273', 'getSplitJID', 'link-258');">getSplitJID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L501"></a><tt class="py-lineno"> 501</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">split_jid</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L502"></a><tt class="py-lineno"> 502</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-274" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-274', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-275" class="py-name" targets="Method spade.xmppd.modules.db_fake.DB.get_store()=spade.xmppd.modules.db_fake.DB-class.html#get_store"><a title="spade.xmppd.modules.db_fake.DB.get_store" class="py-name" href="#" onclick="return doclink('link-275', 'get_store', 'link-275');">get_store</a></tt><tt class="py-op">(</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'karma'</tt><tt class="py-op">)</tt> </tt>
<a name="L503"></a><tt class="py-lineno"> 503</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L504"></a><tt class="py-lineno"> 504</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L505"></a><tt class="py-lineno"> 505</tt>  <tt class="py-line"> </tt>
<a name="Session.updateKarma"></a><div id="Session.updateKarma-def"><a name="L506"></a><tt class="py-lineno"> 506</tt> <a class="py-toggle" href="#" id="Session.updateKarma-toggle" onclick="return toggle('Session.updateKarma');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#updateKarma">updateKarma</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">karma</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.updateKarma-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.updateKarma-expanded"><a name="L507"></a><tt class="py-lineno"> 507</tt>  <tt class="py-line">        <tt class="py-name">split_jid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-276" class="py-name"><a title="spade.xmppd.xmppd.Session.getSplitJID" class="py-name" href="#" onclick="return doclink('link-276', 'getSplitJID', 'link-258');">getSplitJID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L508"></a><tt class="py-lineno"> 508</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">split_jid</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L509"></a><tt class="py-lineno"> 509</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-277" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-277', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-278" class="py-name" targets="Method spade.xmppd.modules.db_fake.DB.store()=spade.xmppd.modules.db_fake.DB-class.html#store"><a title="spade.xmppd.modules.db_fake.DB.store" class="py-name" href="#" onclick="return doclink('link-278', 'store', 'link-278');">store</a></tt><tt class="py-op">(</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">karma</tt><tt class="py-op">,</tt><tt class="py-string">'karma'</tt><tt class="py-op">)</tt> </tt>
<a name="L510"></a><tt class="py-lineno"> 510</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L511"></a><tt class="py-lineno"> 511</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L512"></a><tt class="py-lineno"> 512</tt>  <tt class="py-line"> </tt>
<a name="Session.feature"></a><div id="Session.feature-def"><a name="L513"></a><tt class="py-lineno"> 513</tt> <a class="py-toggle" href="#" id="Session.feature-toggle" onclick="return toggle('Session.feature');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#feature">feature</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">feature</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.feature-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.feature-expanded"><a name="L514"></a><tt class="py-lineno"> 514</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-279" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-279', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-280" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-280', 'features', 'link-123');">features</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-281" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-281', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-282" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-282', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt id="link-283" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-283', 'feature', 'link-117');">feature</a></tt><tt class="py-op">)</tt> </tt>
<a name="L515"></a><tt class="py-lineno"> 515</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-284" class="py-name" targets="Method spade.xmpp.session.Session.unfeature()=spade.xmpp.session.Session-class.html#unfeature,Method spade.xmppd.xmppd.Server.unfeature()=spade.xmppd.xmppd.Server-class.html#unfeature,Method spade.xmppd.xmppd.Session.unfeature()=spade.xmppd.xmppd.Session-class.html#unfeature"><a title="spade.xmpp.session.Session.unfeature
spade.xmppd.xmppd.Server.unfeature
spade.xmppd.xmppd.Session.unfeature" class="py-name" href="#" onclick="return doclink('link-284', 'unfeature', 'link-284');">unfeature</a></tt><tt class="py-op">(</tt><tt id="link-285" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-285', 'feature', 'link-117');">feature</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L516"></a><tt class="py-lineno"> 516</tt>  <tt class="py-line"> </tt>
<a name="Session.unfeature"></a><div id="Session.unfeature-def"><a name="L517"></a><tt class="py-lineno"> 517</tt> <a class="py-toggle" href="#" id="Session.unfeature-toggle" onclick="return toggle('Session.unfeature');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#unfeature">unfeature</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">feature</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.unfeature-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.unfeature-expanded"><a name="L518"></a><tt class="py-lineno"> 518</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-286" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-286', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">waiting_features</tt><tt class="py-op">.</tt><tt id="link-287" class="py-name"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-287', 'remove', 'link-180');">remove</a></tt><tt class="py-op">(</tt><tt id="link-288" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-288', 'feature', 'link-117');">feature</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L519"></a><tt class="py-lineno"> 519</tt>  <tt class="py-line"> </tt>
<a name="Session._stream_close"></a><div id="Session._stream_close-def"><a name="L520"></a><tt class="py-lineno"> 520</tt> <a class="py-toggle" href="#" id="Session._stream_close-toggle" onclick="return toggle('Session._stream_close');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#_stream_close">_stream_close</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">unregister</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._stream_close-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session._stream_close-expanded"><a name="L521"></a><tt class="py-lineno"> 521</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">&gt;=</tt><tt id="link-289" class="py-name"><a title="spade.xmpp.session.STREAM__CLOSED
spade.xmppd.modules.stream.STREAM__CLOSED
spade.xmppd.xmppd.STREAM__CLOSED" class="py-name" href="#" onclick="return doclink('link-289', 'STREAM__CLOSED', 'link-9');">STREAM__CLOSED</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L522"></a><tt class="py-lineno"> 522</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-290" class="py-name"><a title="spade.xmpp.session.Session.set_stream_state
spade.xmppd.xmppd.Session.set_stream_state" class="py-name" href="#" onclick="return doclink('link-290', 'set_stream_state', 'link-210');">set_stream_state</a></tt><tt class="py-op">(</tt><tt id="link-291" class="py-name"><a title="spade.xmpp.session.STREAM__CLOSING
spade.xmppd.modules.stream.STREAM__CLOSING
spade.xmppd.xmppd.STREAM__CLOSING" class="py-name" href="#" onclick="return doclink('link-291', 'STREAM__CLOSING', 'link-8');">STREAM__CLOSING</a></tt><tt class="py-op">)</tt> </tt>
<a name="L523"></a><tt class="py-lineno"> 523</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-292" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-292', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt class="py-string">'&lt;/stream:stream&gt;'</tt><tt class="py-op">)</tt> </tt>
<a name="L524"></a><tt class="py-lineno"> 524</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-293" class="py-name"><a title="spade.xmpp.session.Session.set_stream_state
spade.xmppd.xmppd.Session.set_stream_state" class="py-name" href="#" onclick="return doclink('link-293', 'set_stream_state', 'link-210');">set_stream_state</a></tt><tt class="py-op">(</tt><tt id="link-294" class="py-name"><a title="spade.xmpp.session.STREAM__CLOSED
spade.xmppd.modules.stream.STREAM__CLOSED
spade.xmppd.xmppd.STREAM__CLOSED" class="py-name" href="#" onclick="return doclink('link-294', 'STREAM__CLOSED', 'link-9');">STREAM__CLOSED</a></tt><tt class="py-op">)</tt> </tt>
<a name="L525"></a><tt class="py-lineno"> 525</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-295" class="py-name"><a title="spade.xmpp.session.Session.push_queue
spade.xmppd.xmppd.Session.push_queue" class="py-name" href="#" onclick="return doclink('link-295', 'push_queue', 'link-159');">push_queue</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt>       <tt class="py-comment"># decompose queue really since STREAM__CLOSED</tt> </tt>
<a name="L526"></a><tt class="py-lineno"> 526</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-296" class="py-name" targets="Function spade.xmpp.features.unregister()=spade.xmpp.features-module.html#unregister,Method spade.xmppd.xmppd.fake_select.poll.unregister()=spade.xmppd.xmppd.fake_select.poll-class.html#unregister"><a title="spade.xmpp.features.unregister
spade.xmppd.xmppd.fake_select.poll.unregister" class="py-name" href="#" onclick="return doclink('link-296', 'unregister', 'link-296');">unregister</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-297" class="py-name" targets="Method spade.xmppd.xmppd.Server.unregistersession()=spade.xmppd.xmppd.Server-class.html#unregistersession,Method spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession()=spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#unregistersession,Method spade.xmppd.xmppd.multisession_manager.unregistersession()=spade.xmppd.xmppd.multisession_manager-class.html#unregistersession"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-297', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L527"></a><tt class="py-lineno"> 527</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lib_event</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">lib_event</tt><tt class="py-op">.</tt><tt id="link-298" class="py-name" targets="Method spade.dblite.Base.delete()=spade.dblite.Base-class.html#delete,Method spade.xmppd.modules.db_fake.DB.delete()=spade.xmppd.modules.db_fake.DB-class.html#delete"><a title="spade.dblite.Base.delete
spade.xmppd.modules.db_fake.DB.delete" class="py-name" href="#" onclick="return doclink('link-298', 'delete', 'link-298');">delete</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L528"></a><tt class="py-lineno"> 528</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-299" class="py-name" targets="Method spade.xmpp.session.Session._destroy_socket()=spade.xmpp.session.Session-class.html#_destroy_socket,Method spade.xmppd.xmppd.Session._destroy_socket()=spade.xmppd.xmppd.Session-class.html#_destroy_socket"><a title="spade.xmpp.session.Session._destroy_socket
spade.xmppd.xmppd.Session._destroy_socket" class="py-name" href="#" onclick="return doclink('link-299', '_destroy_socket', 'link-299');">_destroy_socket</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L529"></a><tt class="py-lineno"> 529</tt>  <tt class="py-line"> </tt>
<a name="Session.terminate_stream"></a><div id="Session.terminate_stream-def"><a name="L530"></a><tt class="py-lineno"> 530</tt> <a class="py-toggle" href="#" id="Session.terminate_stream-toggle" onclick="return toggle('Session.terminate_stream');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#terminate_stream">terminate_stream</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">error</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">unregister</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.terminate_stream-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.terminate_stream-expanded"><a name="L531"></a><tt class="py-lineno"> 531</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">&gt;=</tt><tt id="link-300" class="py-name"><a title="spade.xmpp.session.STREAM__CLOSING
spade.xmppd.modules.stream.STREAM__CLOSING
spade.xmppd.xmppd.STREAM__CLOSING" class="py-name" href="#" onclick="return doclink('link-300', 'STREAM__CLOSING', 'link-8');">STREAM__CLOSING</a></tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L532"></a><tt class="py-lineno"> 532</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">&lt;</tt><tt id="link-301" class="py-name"><a title="spade.xmpp.session.STREAM__OPENED
spade.xmppd.modules.stream.STREAM__OPENED
spade.xmppd.xmppd.STREAM__OPENED" class="py-name" href="#" onclick="return doclink('link-301', 'STREAM__OPENED', 'link-7');">STREAM__OPENED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L533"></a><tt class="py-lineno"> 533</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-302" class="py-name"><a title="spade.xmpp.session.Session.set_stream_state
spade.xmppd.xmppd.Session.set_stream_state" class="py-name" href="#" onclick="return doclink('link-302', 'set_stream_state', 'link-210');">set_stream_state</a></tt><tt class="py-op">(</tt><tt id="link-303" class="py-name"><a title="spade.xmpp.session.STREAM__CLOSING
spade.xmppd.modules.stream.STREAM__CLOSING
spade.xmppd.xmppd.STREAM__CLOSING" class="py-name" href="#" onclick="return doclink('link-303', 'STREAM__CLOSING', 'link-8');">STREAM__CLOSING</a></tt><tt class="py-op">)</tt> </tt>
<a name="L534"></a><tt class="py-lineno"> 534</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-304" class="py-name"><a title="spade.xmpp.session.Session._stream_open
spade.xmppd.xmppd.Session._stream_open" class="py-name" href="#" onclick="return doclink('link-304', '_stream_open', 'link-143');">_stream_open</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L535"></a><tt class="py-lineno"> 535</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L536"></a><tt class="py-lineno"> 536</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-305" class="py-name"><a title="spade.xmpp.session.Session.set_stream_state
spade.xmppd.xmppd.Session.set_stream_state" class="py-name" href="#" onclick="return doclink('link-305', 'set_stream_state', 'link-210');">set_stream_state</a></tt><tt class="py-op">(</tt><tt id="link-306" class="py-name"><a title="spade.xmpp.session.STREAM__CLOSING
spade.xmppd.modules.stream.STREAM__CLOSING
spade.xmppd.xmppd.STREAM__CLOSING" class="py-name" href="#" onclick="return doclink('link-306', 'STREAM__CLOSING', 'link-8');">STREAM__CLOSING</a></tt><tt class="py-op">)</tt> </tt>
<a name="L537"></a><tt class="py-lineno"> 537</tt>  <tt class="py-line">            <tt class="py-name">p</tt><tt class="py-op">=</tt><tt id="link-307" class="py-name" targets="Class spade.xmpp.protocol.Presence=spade.xmpp.protocol.Presence-class.html"><a title="spade.xmpp.protocol.Presence" class="py-name" href="#" onclick="return doclink('link-307', 'Presence', 'link-307');">Presence</a></tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-string">'unavailable'</tt><tt class="py-op">)</tt> </tt>
<a name="L538"></a><tt class="py-lineno"> 538</tt>  <tt class="py-line">            <tt class="py-name">p</tt><tt class="py-op">.</tt><tt id="link-308" class="py-name"><a title="spade.xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-308', 'setNamespace', 'link-231');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-309" class="py-name"><a title="spade.Agent.NS_CLIENT
spade.MTP.NS_CLIENT
spade.Organization.NS_CLIENT
spade.Organization_new.NS_CLIENT
spade.Unit.NS_CLIENT
spade.Unit_new.NS_CLIENT
spade.pubsub.NS_CLIENT
spade.socialnetwork.NS_CLIENT
spade.xmpp.NS_CLIENT
spade.xmpp.auth.NS_CLIENT
spade.xmpp.browser.NS_CLIENT
spade.xmpp.commands.NS_CLIENT
spade.xmpp.dispatcher.NS_CLIENT
spade.xmpp.features.NS_CLIENT
spade.xmpp.filetransfer.NS_CLIENT
spade.xmpp.protocol.NS_CLIENT
spade.xmpp.roster.NS_CLIENT
spade.xmpp.transports.NS_CLIENT
spade.xmppd.modules.config.NS_CLIENT
spade.xmppd.modules.db_fake.NS_CLIENT
spade.xmppd.modules.dialback.NS_CLIENT
spade.xmppd.modules.jep0077.NS_CLIENT
spade.xmppd.modules.jep0078.NS_CLIENT
spade.xmppd.modules.message.NS_CLIENT
spade.xmppd.modules.muc.NS_CLIENT
spade.xmppd.modules.oob.NS_CLIENT
spade.xmppd.modules.pubsub.NS_CLIENT
spade.xmppd.modules.roster.NS_CLIENT
spade.xmppd.modules.router.NS_CLIENT
spade.xmppd.modules.stream.NS_CLIENT
spade.xmppd.modules.webadmin.NS_CLIENT
spade.xmppd.modules.wq.NS_CLIENT
spade.xmppd.xmppd.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-309', 'NS_CLIENT', 'link-203');">NS_CLIENT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L539"></a><tt class="py-lineno"> 539</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-310" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-310', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-311" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-311', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L540"></a><tt class="py-lineno"> 540</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-312" class="py-name" targets="Class spade.xmpp.transports.error=spade.xmpp.transports.error-class.html"><a title="spade.xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-312', 'error', 'link-312');">error</a></tt><tt class="py-op">:</tt> </tt>
<a name="L541"></a><tt class="py-lineno"> 541</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt id="link-313" class="py-name"><a title="spade.xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-313', 'error', 'link-312');">error</a></tt><tt class="py-op">,</tt><tt id="link-314" class="py-name"><a title="spade.xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-314', 'Node', 'link-152');">Node</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-315" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-315', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt id="link-316" class="py-name"><a title="spade.xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-316', 'error', 'link-312');">error</a></tt><tt class="py-op">)</tt> </tt>
<a name="L542"></a><tt class="py-lineno"> 542</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-317" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-317', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt id="link-318" class="py-name" targets="Class spade.xmpp.protocol.ErrorNode=spade.xmpp.protocol.ErrorNode-class.html"><a title="spade.xmpp.protocol.ErrorNode" class="py-name" href="#" onclick="return doclink('link-318', 'ErrorNode', 'link-318');">ErrorNode</a></tt><tt class="py-op">(</tt><tt id="link-319" class="py-name"><a title="spade.xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-319', 'error', 'link-312');">error</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L543"></a><tt class="py-lineno"> 543</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-320" class="py-name"><a title="spade.xmpp.session.Session._stream_close
spade.xmppd.xmppd.Session._stream_close" class="py-name" href="#" onclick="return doclink('link-320', '_stream_close', 'link-139');">_stream_close</a></tt><tt class="py-op">(</tt><tt id="link-321" class="py-name"><a title="spade.xmpp.features.unregister
spade.xmppd.xmppd.fake_select.poll.unregister" class="py-name" href="#" onclick="return doclink('link-321', 'unregister', 'link-296');">unregister</a></tt><tt class="py-op">=</tt><tt id="link-322" class="py-name"><a title="spade.xmpp.features.unregister
spade.xmppd.xmppd.fake_select.poll.unregister" class="py-name" href="#" onclick="return doclink('link-322', 'unregister', 'link-296');">unregister</a></tt><tt class="py-op">)</tt> </tt>
<a name="L544"></a><tt class="py-lineno"> 544</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">slave_session</tt><tt class="py-op">:</tt> </tt>
<a name="L545"></a><tt class="py-lineno"> 545</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">slave_session</tt><tt class="py-op">.</tt><tt id="link-323" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-323', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-324" class="py-name" targets="Variable spade.Agent.STREAM_REMOTE_CONNECTION_FAILED=spade.Agent-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.MTP.STREAM_REMOTE_CONNECTION_FAILED=spade.MTP-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.Organization.STREAM_REMOTE_CONNECTION_FAILED=spade.Organization-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.Organization_new.STREAM_REMOTE_CONNECTION_FAILED=spade.Organization_new-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.Unit.STREAM_REMOTE_CONNECTION_FAILED=spade.Unit-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.Unit_new.STREAM_REMOTE_CONNECTION_FAILED=spade.Unit_new-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.pubsub.STREAM_REMOTE_CONNECTION_FAILED=spade.pubsub-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.socialnetwork.STREAM_REMOTE_CONNECTION_FAILED=spade.socialnetwork-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.auth.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.auth-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.browser.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.browser-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.commands.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.commands-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.dispatcher.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.dispatcher-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.features.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.features-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.filetransfer.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.filetransfer-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.protocol.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.protocol-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.roster.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.roster-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmpp.transports.STREAM_REMOTE_CONNECTION_FAILED=spade.xmpp.transports-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.config.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.config-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.db_fake.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.db_fake-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.dialback.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.dialback-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.jep0077.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.jep0077-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.jep0078.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.jep0078-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.message.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.message-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.muc.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.muc-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.oob.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.oob-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.pubsub.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.pubsub-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.roster.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.roster-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.router.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.router-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.stream.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.stream-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.webadmin.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.webadmin-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.modules.wq.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.modules.wq-module.html#STREAM_REMOTE_CONNECTION_FAILED,Variable spade.xmppd.xmppd.STREAM_REMOTE_CONNECTION_FAILED=spade.xmppd.xmppd-module.html#STREAM_REMOTE_CONNECTION_FAILED"><a title="spade.Agent.STREAM_REMOTE_CONNECTION_FAILED
spade.MTP.STREAM_REMOTE_CONNECTION_FAILED
spade.Organization.STREAM_REMOTE_CONNECTION_FAILED
spade.Organization_new.STREAM_REMOTE_CONNECTION_FAILED
spade.Unit.STREAM_REMOTE_CONNECTION_FAILED
spade.Unit_new.STREAM_REMOTE_CONNECTION_FAILED
spade.pubsub.STREAM_REMOTE_CONNECTION_FAILED
spade.socialnetwork.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.auth.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.browser.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.commands.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.dispatcher.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.features.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.filetransfer.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.protocol.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.roster.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.transports.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.config.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.db_fake.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.dialback.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.jep0077.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.jep0078.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.message.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.muc.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.oob.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.pubsub.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.roster.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.router.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.stream.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.webadmin.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.wq.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.xmppd.STREAM_REMOTE_CONNECTION_FAILED" class="py-name" href="#" onclick="return doclink('link-324', 'STREAM_REMOTE_CONNECTION_FAILED', 'link-324');">STREAM_REMOTE_CONNECTION_FAILED</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L546"></a><tt class="py-lineno"> 546</tt>  <tt class="py-line"> </tt>
<a name="Session._destroy_socket"></a><div id="Session._destroy_socket-def"><a name="L547"></a><tt class="py-lineno"> 547</tt> <a class="py-toggle" href="#" id="Session._destroy_socket-toggle" onclick="return toggle('Session._destroy_socket');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#_destroy_socket">_destroy_socket</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session._destroy_socket-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session._destroy_socket-expanded"><a name="L548"></a><tt class="py-lineno"> 548</tt>  <tt class="py-line">        <tt class="py-docstring">""" breaking cyclic dependancy to let python's GC free memory just now """</tt> </tt>
<a name="L549"></a><tt class="py-lineno"> 549</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-325" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-325', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-326" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-326', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L550"></a><tt class="py-lineno"> 550</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-327" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-327', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-328" class="py-name"><a title="spade.xmpp.simplexml.NodeBuilder.stream_footer_received" class="py-name" href="#" onclick="return doclink('link-328', 'stream_footer_received', 'link-138');">stream_footer_received</a></tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L551"></a><tt class="py-lineno"> 551</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-329" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-329', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-330" class="py-name"><a title="spade.xmpp.simplexml.NodeBuilder.stream_header_received" class="py-name" href="#" onclick="return doclink('link-330', 'stream_header_received', 'link-141');">stream_header_received</a></tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L552"></a><tt class="py-lineno"> 552</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-331" class="py-name"><a title="spade.xmppd.xmppd.Session_Dummy.Stream" class="py-name" href="#" onclick="return doclink('link-331', 'Stream', 'link-102');">Stream</a></tt><tt class="py-op">.</tt><tt id="link-332" class="py-name" targets="Method spade.Organization.Organization.destroy()=spade.Organization.Organization-class.html#destroy,Method spade.Organization_new.Organization_new.destroy()=spade.Organization_new.Organization_new-class.html#destroy,Method spade.Unit.Unit.destroy()=spade.Unit.Unit-class.html#destroy,Method spade.Unit_new.Unit_new.destroy()=spade.Unit_new.Unit_new-class.html#destroy,Method spade.xmpp.simplexml.NodeBuilder.destroy()=spade.xmpp.simplexml.NodeBuilder-class.html#destroy,Method spade.xmppd.xmppd.Socker_client.destroy()=spade.xmppd.xmppd.Socker_client-class.html#destroy,Method spade.xmppd.xmppd.multisession_manager.destroy()=spade.xmppd.xmppd.multisession_manager-class.html#destroy"><a title="spade.Organization.Organization.destroy
spade.Organization_new.Organization_new.destroy
spade.Unit.Unit.destroy
spade.Unit_new.Unit_new.destroy
spade.xmpp.simplexml.NodeBuilder.destroy
spade.xmppd.xmppd.Socker_client.destroy
spade.xmppd.xmppd.multisession_manager.destroy" class="py-name" href="#" onclick="return doclink('link-332', 'destroy', 'link-332');">destroy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L553"></a><tt class="py-lineno"> 553</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt class="py-name">close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L554"></a><tt class="py-lineno"> 554</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-333" class="py-name"><a title="spade.xmpp.session.Session.set_socket_state
spade.xmppd.xmppd.Session.set_socket_state" class="py-name" href="#" onclick="return doclink('link-333', 'set_socket_state', 'link-150');">set_socket_state</a></tt><tt class="py-op">(</tt><tt id="link-334" class="py-name"><a title="spade.xmpp.session.SOCKET_DEAD
spade.xmppd.modules.stream.SOCKET_DEAD
spade.xmppd.xmppd.SOCKET_DEAD" class="py-name" href="#" onclick="return doclink('link-334', 'SOCKET_DEAD', 'link-5');">SOCKET_DEAD</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L555"></a><tt class="py-lineno"> 555</tt>  <tt class="py-line"> </tt>
<a name="Session.start_feature"></a><div id="Session.start_feature-def"><a name="L556"></a><tt class="py-lineno"> 556</tt> <a class="py-toggle" href="#" id="Session.start_feature-toggle" onclick="return toggle('Session.start_feature');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#start_feature">start_feature</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">f</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.start_feature-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.start_feature-expanded"><a name="L557"></a><tt class="py-lineno"> 557</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">feature_in_process</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt class="py-string">"Starting feature %s over %s !"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">feature_in_process</tt><tt class="py-op">)</tt> </tt>
<a name="L558"></a><tt class="py-lineno"> 558</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">feature_in_process</tt><tt class="py-op">=</tt><tt class="py-name">f</tt> </tt>
</div><a name="Session.stop_feature"></a><div id="Session.stop_feature-def"><a name="L559"></a><tt class="py-lineno"> 559</tt> <a class="py-toggle" href="#" id="Session.stop_feature-toggle" onclick="return toggle('Session.stop_feature');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#stop_feature">stop_feature</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">f</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.stop_feature-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.stop_feature-expanded"><a name="L560"></a><tt class="py-lineno"> 560</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">feature_in_process</tt><tt class="py-op">&lt;&gt;</tt><tt class="py-name">f</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-335" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-335', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"Stopping feature %s instead of %s !"</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">f</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">feature_in_process</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L561"></a><tt class="py-lineno"> 561</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">feature_in_process</tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
</div><a name="Session.set_socket_state"></a><div id="Session.set_socket_state-def"><a name="L562"></a><tt class="py-lineno"> 562</tt> <a class="py-toggle" href="#" id="Session.set_socket_state-toggle" onclick="return toggle('Session.set_socket_state');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#set_socket_state">set_socket_state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">newstate</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.set_socket_state-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.set_socket_state-expanded"><a name="L563"></a><tt class="py-lineno"> 563</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socket_state</tt><tt class="py-op">&lt;</tt><tt class="py-name">newstate</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socket_state</tt><tt class="py-op">=</tt><tt class="py-name">newstate</tt> </tt>
</div><a name="Session.set_session_state"></a><div id="Session.set_session_state-def"><a name="L564"></a><tt class="py-lineno"> 564</tt> <a class="py-toggle" href="#" id="Session.set_session_state-toggle" onclick="return toggle('Session.set_session_state');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#set_session_state">set_session_state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">newstate</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.set_session_state-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.set_session_state-expanded"><a name="L565"></a><tt class="py-lineno"> 565</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_session_state</tt><tt class="py-op">&lt;</tt><tt class="py-name">newstate</tt><tt class="py-op">:</tt> </tt>
<a name="L566"></a><tt class="py-lineno"> 566</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_session_state</tt><tt class="py-op">&lt;</tt><tt id="link-336" class="py-name"><a title="spade.xmpp.session.SESSION_AUTHED
spade.xmppd.modules.router.SESSION_AUTHED
spade.xmppd.modules.stream.SESSION_AUTHED
spade.xmppd.xmppd.SESSION_AUTHED" class="py-name" href="#" onclick="return doclink('link-336', 'SESSION_AUTHED', 'link-11');">SESSION_AUTHED</a></tt> <tt class="py-keyword">and</tt> \ </tt>
<a name="L567"></a><tt class="py-lineno"> 567</tt>  <tt class="py-line">               <tt class="py-name">newstate</tt><tt class="py-op">&gt;=</tt><tt id="link-337" class="py-name"><a title="spade.xmpp.session.SESSION_AUTHED
spade.xmppd.modules.router.SESSION_AUTHED
spade.xmppd.modules.stream.SESSION_AUTHED
spade.xmppd.xmppd.SESSION_AUTHED" class="py-name" href="#" onclick="return doclink('link-337', 'SESSION_AUTHED', 'link-11');">SESSION_AUTHED</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_queued</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_pos_sent</tt> </tt>
<a name="L568"></a><tt class="py-lineno"> 568</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_session_state</tt><tt class="py-op">=</tt><tt class="py-name">newstate</tt> </tt>
<a name="L569"></a><tt class="py-lineno"> 569</tt>  <tt class="py-line">            <tt class="py-name">split_jid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-338" class="py-name"><a title="spade.xmppd.xmppd.Session.getSplitJID" class="py-name" href="#" onclick="return doclink('link-338', 'getSplitJID', 'link-258');">getSplitJID</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L570"></a><tt class="py-lineno"> 570</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">split_jid</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-339" class="py-name" targets="Variable spade.xmppd.modules.config.administrators=spade.xmppd.modules.config-module.html#administrators"><a title="spade.xmppd.modules.config.administrators" class="py-name" href="#" onclick="return doclink('link-339', 'administrators', 'link-339');">administrators</a></tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">ourname</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L571"></a><tt class="py-lineno"> 571</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">isAdmin</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L572"></a><tt class="py-lineno"> 572</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-340" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-340', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SESSION_ADMIN_SET</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L573"></a><tt class="py-lineno"> 573</tt>  <tt class="py-line"><tt class="py-comment">#            if newstate==SESSION_OPENED: self.enqueue(Message(self.peer,SERVER_MOTD,frm=self.ourname))     # Remove in prod. quality server</tt> </tt>
<a name="L574"></a><tt class="py-lineno"> 574</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">newstate</tt><tt class="py-op">==</tt><tt id="link-341" class="py-name"><a title="spade.xmpp.session.SESSION_OPENED
spade.xmppd.modules.router.SESSION_OPENED
spade.xmppd.modules.stream.SESSION_OPENED
spade.xmppd.xmppd.SESSION_OPENED" class="py-name" href="#" onclick="return doclink('link-341', 'SESSION_OPENED', 'link-13');">SESSION_OPENED</a></tt><tt class="py-op">:</tt> </tt>
<a name="L575"></a><tt class="py-lineno"> 575</tt>  <tt class="py-line">                <tt class="py-comment"># Enqueue previously stored messages</tt> </tt>
<a name="L576"></a><tt class="py-lineno"> 576</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt id="link-342" class="py-name" targets="Variable spade.pyparsing.ParseBaseException.msg=spade.pyparsing.ParseBaseException-class.html#msg"><a title="spade.pyparsing.ParseBaseException.msg" class="py-name" href="#" onclick="return doclink('link-342', 'msg', 'link-342');">msg</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-343" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-343', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-344" class="py-name" targets="Method spade.xmppd.modules.db_fake.DB.get_storage()=spade.xmppd.modules.db_fake.DB-class.html#get_storage"><a title="spade.xmppd.modules.db_fake.DB.get_storage" class="py-name" href="#" onclick="return doclink('link-344', 'get_storage', 'link-344');">get_storage</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt><tt class="py-op">,</tt> <tt class="py-string">""</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L577"></a><tt class="py-lineno"> 577</tt>  <tt class="py-line">                    <tt class="py-comment">#print "### ENQ ", str(msg)</tt> </tt>
<a name="L578"></a><tt class="py-lineno"> 578</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-345" class="py-name"><a title="spade.xmpp.session.Session.enqueue
spade.xmppd.xmppd.Session.enqueue" class="py-name" href="#" onclick="return doclink('link-345', 'enqueue', 'link-155');">enqueue</a></tt><tt class="py-op">(</tt><tt id="link-346" class="py-name"><a title="spade.pyparsing.ParseBaseException.msg" class="py-name" href="#" onclick="return doclink('link-346', 'msg', 'link-342');">msg</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L579"></a><tt class="py-lineno"> 579</tt>  <tt class="py-line">              </tt>
<a name="Session.set_stream_state"></a><div id="Session.set_stream_state-def"><a name="L580"></a><tt class="py-lineno"> 580</tt> <a class="py-toggle" href="#" id="Session.set_stream_state-toggle" onclick="return toggle('Session.set_stream_state');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Session-class.html#set_stream_state">set_stream_state</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">newstate</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Session.set_stream_state-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Session.set_stream_state-expanded"><a name="L581"></a><tt class="py-lineno"> 581</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">&lt;</tt><tt class="py-name">newstate</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_stream_state</tt><tt class="py-op">=</tt><tt class="py-name">newstate</tt> </tt>
</div></div><a name="L582"></a><tt class="py-lineno"> 582</tt>  <tt class="py-line"> </tt>
<a name="Socker_client"></a><div id="Socker_client-def"><a name="L583"></a><tt class="py-lineno"> 583</tt> <a class="py-toggle" href="#" id="Socker_client-toggle" onclick="return toggle('Socker_client');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html">Socker_client</a><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Socker_client-expanded"><a name="Socker_client.__init__"></a><div id="Socker_client.__init__-def"><a name="L584"></a><tt class="py-lineno"> 584</tt> <a class="py-toggle" href="#" id="Socker_client.__init__-toggle" onclick="return toggle('Socker_client.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">owner</tt><tt class="py-op">,</tt><tt class="py-param">socker_host</tt><tt class="py-op">,</tt><tt class="py-param">tguid</tt><tt class="py-op">,</tt><tt class="py-param">sguid</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.__init__-expanded"><a name="L585"></a><tt class="py-lineno"> 585</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt> <tt class="py-op">=</tt> <tt class="py-name">owner</tt> </tt>
<a name="L586"></a><tt class="py-lineno"> 586</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt> <tt class="py-op">=</tt> <tt class="py-name">xmlrpclib</tt><tt class="py-op">.</tt><tt class="py-name">ServerProxy</tt><tt class="py-op">(</tt><tt class="py-string">'http://%s'</tt><tt class="py-op">%</tt><tt class="py-name">socker_host</tt><tt class="py-op">)</tt> </tt>
<a name="L587"></a><tt class="py-lineno"> 587</tt>  <tt class="py-line"> </tt>
<a name="L588"></a><tt class="py-lineno"> 588</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-comment">#See if the Socker server will say hello...</tt> </tt>
<a name="L589"></a><tt class="py-lineno"> 589</tt>  <tt class="py-line">            <tt class="py-name">ok_res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">hello</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L590"></a><tt class="py-lineno"> 590</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">ok_res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L591"></a><tt class="py-lineno"> 591</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L592"></a><tt class="py-lineno"> 592</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L593"></a><tt class="py-lineno"> 593</tt>  <tt class="py-line"> </tt>
<a name="L594"></a><tt class="py-lineno"> 594</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt> <tt class="py-op">=</tt> <tt class="py-name">tguid</tt> </tt>
<a name="L595"></a><tt class="py-lineno"> 595</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">owner</tt><tt class="py-op">.</tt><tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-347" class="py-name" targets="Method spade.odict.odict.setdefault()=spade.odict.odict-class.html#setdefault"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-347', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'hostname'</tt><tt class="py-op">,</tt><tt class="py-name">False</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L596"></a><tt class="py-lineno"> 596</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">owner</tt><tt class="py-op">.</tt><tt id="link-348" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-348', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt> <tt class="py-string">"[SOCKER] hostname set to &lt;%s&gt;"</tt> <tt class="py-op">%</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">owner</tt><tt class="py-op">.</tt><tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'hostname'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L597"></a><tt class="py-lineno"> 597</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_hostname</tt> <tt class="py-op">=</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">owner</tt><tt class="py-op">.</tt><tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'hostname'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L598"></a><tt class="py-lineno"> 598</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L599"></a><tt class="py-lineno"> 599</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_hostname</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L600"></a><tt class="py-lineno"> 600</tt>  <tt class="py-line"> </tt>
<a name="L601"></a><tt class="py-lineno"> 601</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">sguid</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L602"></a><tt class="py-lineno"> 602</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-349" class="py-name" targets="Method spade.xmppd.xmppd.Socker_client.get_uuid()=spade.xmppd.xmppd.Socker_client-class.html#get_uuid"><a title="spade.xmppd.xmppd.Socker_client.get_uuid" class="py-name" href="#" onclick="return doclink('link-349', 'get_uuid', 'link-349');">get_uuid</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L603"></a><tt class="py-lineno"> 603</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L604"></a><tt class="py-lineno"> 604</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt> <tt class="py-op">=</tt> <tt class="py-name">sguid</tt> </tt>
<a name="L605"></a><tt class="py-lineno"> 605</tt>  <tt class="py-line"> </tt>
<a name="L606"></a><tt class="py-lineno"> 606</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_chain</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L607"></a><tt class="py-lineno"> 607</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fake_to_real_port</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L608"></a><tt class="py-lineno"> 608</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
</div><a name="L609"></a><tt class="py-lineno"> 609</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.get_uuid"></a><div id="Socker_client.get_uuid-def"><a name="L610"></a><tt class="py-lineno"> 610</tt> <a class="py-toggle" href="#" id="Socker_client.get_uuid-toggle" onclick="return toggle('Socker_client.get_uuid');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#get_uuid">get_uuid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.get_uuid-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.get_uuid-expanded"><a name="L611"></a><tt class="py-lineno"> 611</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L612"></a><tt class="py-lineno"> 612</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">uuidgen</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L613"></a><tt class="py-lineno"> 613</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L614"></a><tt class="py-lineno"> 614</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L615"></a><tt class="py-lineno"> 615</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.get_hostname"></a><div id="Socker_client.get_hostname-def"><a name="L616"></a><tt class="py-lineno"> 616</tt> <a class="py-toggle" href="#" id="Socker_client.get_hostname-toggle" onclick="return toggle('Socker_client.get_hostname');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#get_hostname">get_hostname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.get_hostname-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.get_hostname-expanded"><a name="L617"></a><tt class="py-lineno"> 617</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L618"></a><tt class="py-lineno"> 618</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">hostname</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L619"></a><tt class="py-lineno"> 619</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'hostname'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L620"></a><tt class="py-lineno"> 620</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_hostname</tt> <tt class="py-op">=</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'hostname'</tt><tt class="py-op">]</tt> </tt>
<a name="L621"></a><tt class="py-lineno"> 621</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'hostname'</tt><tt class="py-op">]</tt> </tt>
<a name="L622"></a><tt class="py-lineno"> 622</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L623"></a><tt class="py-lineno"> 623</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L624"></a><tt class="py-lineno"> 624</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L625"></a><tt class="py-lineno"> 625</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L626"></a><tt class="py-lineno"> 626</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.get_sguid"></a><div id="Socker_client.get_sguid-def"><a name="L627"></a><tt class="py-lineno"> 627</tt> <a class="py-toggle" href="#" id="Socker_client.get_sguid-toggle" onclick="return toggle('Socker_client.get_sguid');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#get_sguid">get_sguid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.get_sguid-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.get_sguid-expanded"><a name="L628"></a><tt class="py-lineno"> 628</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt> </tt>
</div><a name="L629"></a><tt class="py-lineno"> 629</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.get_tguid"></a><div id="Socker_client.get_tguid-def"><a name="L630"></a><tt class="py-lineno"> 630</tt> <a class="py-toggle" href="#" id="Socker_client.get_tguid-toggle" onclick="return toggle('Socker_client.get_tguid');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#get_tguid">get_tguid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.get_tguid-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.get_tguid-expanded"><a name="L631"></a><tt class="py-lineno"> 631</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt> </tt>
</div><a name="L632"></a><tt class="py-lineno"> 632</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.send_broadcast"></a><div id="Socker_client.send_broadcast-def"><a name="L633"></a><tt class="py-lineno"> 633</tt> <a class="py-toggle" href="#" id="Socker_client.send_broadcast-toggle" onclick="return toggle('Socker_client.send_broadcast');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#send_broadcast">send_broadcast</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">stanza</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.send_broadcast-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.send_broadcast-expanded"><a name="L634"></a><tt class="py-lineno"> 634</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L635"></a><tt class="py-lineno"> 635</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">broadcast</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fake_to_real_port</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'server_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt><tt class="py-op">,</tt><tt class="py-string">'stanza'</tt><tt class="py-op">:</tt><tt class="py-name">stanza</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> <tt class="py-comment">#Send broadcast to Socker</tt> </tt>
<a name="L636"></a><tt class="py-lineno"> 636</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L637"></a><tt class="py-lineno"> 637</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L638"></a><tt class="py-lineno"> 638</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L639"></a><tt class="py-lineno"> 639</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">res</tt> </tt>
</div><a name="L640"></a><tt class="py-lineno"> 640</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.add_port"></a><div id="Socker_client.add_port-def"><a name="L641"></a><tt class="py-lineno"> 641</tt> <a class="py-toggle" href="#" id="Socker_client.add_port-toggle" onclick="return toggle('Socker_client.add_port');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#add_port">add_port</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">outside_port</tt><tt class="py-op">,</tt><tt class="py-param">host</tt><tt class="py-op">,</tt><tt class="py-param">port</tt><tt class="py-op">,</tt><tt class="py-param">options</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.add_port-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.add_port-expanded"><a name="L642"></a><tt class="py-lineno"> 642</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">onwer</tt><tt class="py-op">.</tt><tt id="link-350" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-350', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt> <tt class="py-string">"[SOCKER] attempting to add route to Socker [%s]"</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">outside_port</tt><tt class="py-op">,</tt><tt class="py-name">host</tt><tt class="py-op">,</tt><tt class="py-name">port</tt><tt class="py-op">,</tt><tt class="py-name">options</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L643"></a><tt class="py-lineno"> 643</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">host</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_hostname</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L644"></a><tt class="py-lineno"> 644</tt>  <tt class="py-line">            <tt class="py-name">host</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_hostname</tt> </tt>
<a name="L645"></a><tt class="py-lineno"> 645</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">host</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_hostname</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L646"></a><tt class="py-lineno"> 646</tt>  <tt class="py-line">            <tt class="py-name">host</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-351" class="py-name" targets="Method spade.xmppd.xmppd.Socker_client.get_hostname()=spade.xmppd.xmppd.Socker_client-class.html#get_hostname"><a title="spade.xmppd.xmppd.Socker_client.get_hostname" class="py-name" href="#" onclick="return doclink('link-351', 'get_hostname', 'link-351');">get_hostname</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L647"></a><tt class="py-lineno"> 647</tt>  <tt class="py-line"> </tt>
<a name="L648"></a><tt class="py-lineno"> 648</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_chain</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">outside_port</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">getchain</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">outside_port</tt><tt class="py-op">)</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L649"></a><tt class="py-lineno"> 649</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_chain</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">outside_port</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L650"></a><tt class="py-lineno"> 650</tt>  <tt class="py-line">            <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_chain</tt><tt class="py-op">[</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">outside_port</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L651"></a><tt class="py-lineno"> 651</tt>  <tt class="py-line"> </tt>
<a name="L652"></a><tt class="py-lineno"> 652</tt>  <tt class="py-line">        <tt class="py-name">inpt</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'outside_port'</tt><tt class="py-op">:</tt><tt class="py-name">outside_port</tt><tt class="py-op">,</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">outside_port</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'server_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt><tt class="py-op">,</tt><tt class="py-string">'server_host'</tt><tt class="py-op">:</tt><tt class="py-name">host</tt><tt class="py-op">,</tt><tt class="py-string">'server_port'</tt><tt class="py-op">:</tt><tt class="py-name">port</tt><tt class="py-op">}</tt> </tt>
<a name="L653"></a><tt class="py-lineno"> 653</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">options</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-name">inpt</tt><tt class="py-op">.</tt><tt id="link-352" class="py-name"><a title="spade.dblite.Base.update
spade.odict.odict.update
spade.xmppd.modules.router.Router.update" class="py-name" href="#" onclick="return doclink('link-352', 'update', 'link-87');">update</a></tt><tt class="py-op">(</tt><tt class="py-name">options</tt><tt class="py-op">)</tt> </tt>
<a name="L654"></a><tt class="py-lineno"> 654</tt>  <tt class="py-line"> </tt>
<a name="L655"></a><tt class="py-lineno"> 655</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L656"></a><tt class="py-lineno"> 656</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt id="link-353" class="py-name" targets="Method spade.bdi.PlanList.add()=spade.bdi.PlanList-class.html#add,Method spade.tbcbp.CaseDB.add()=spade.tbcbp.CaseDB-class.html#add"><a title="spade.bdi.PlanList.add
spade.tbcbp.CaseDB.add" class="py-name" href="#" onclick="return doclink('link-353', 'add', 'link-353');">add</a></tt><tt class="py-op">(</tt><tt class="py-name">inpt</tt><tt class="py-op">)</tt> <tt class="py-comment">#Send request to Socker</tt> </tt>
<a name="L657"></a><tt class="py-lineno"> 657</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L658"></a><tt class="py-lineno"> 658</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L659"></a><tt class="py-lineno"> 659</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L660"></a><tt class="py-lineno"> 660</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt> <tt class="py-op">+=</tt> <tt class="py-op">[</tt><tt class="py-name">res</tt><tt class="py-op">]</tt> </tt>
<a name="L661"></a><tt class="py-lineno"> 661</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fake_to_real_port</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">port</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">outside_port</tt> </tt>
<a name="L662"></a><tt class="py-lineno"> 662</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">res</tt> </tt>
<a name="L663"></a><tt class="py-lineno"> 663</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L664"></a><tt class="py-lineno"> 664</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
</div><a name="L665"></a><tt class="py-lineno"> 665</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.add_data"></a><div id="Socker_client.add_data-def"><a name="L666"></a><tt class="py-lineno"> 666</tt> <a class="py-toggle" href="#" id="Socker_client.add_data-toggle" onclick="return toggle('Socker_client.add_data');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#add_data">add_data</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.add_data-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.add_data-expanded"><a name="L667"></a><tt class="py-lineno"> 667</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L668"></a><tt class="py-lineno"> 668</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'act'</tt><tt class="py-op">:</tt><tt class="py-string">'add'</tt><tt class="py-op">,</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fake_to_real_port</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'server_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt><tt class="py-op">,</tt><tt class="py-string">'pass'</tt><tt class="py-op">:</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'add'</tt><tt class="py-op">:</tt><tt class="py-name">data</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L669"></a><tt class="py-lineno"> 669</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L670"></a><tt class="py-lineno"> 670</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L671"></a><tt class="py-lineno"> 671</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.remove_data"></a><div id="Socker_client.remove_data-def"><a name="L672"></a><tt class="py-lineno"> 672</tt> <a class="py-toggle" href="#" id="Socker_client.remove_data-toggle" onclick="return toggle('Socker_client.remove_data');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#remove_data">remove_data</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.remove_data-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.remove_data-expanded"><a name="L673"></a><tt class="py-lineno"> 673</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L674"></a><tt class="py-lineno"> 674</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'act'</tt><tt class="py-op">:</tt><tt class="py-string">'remove'</tt><tt class="py-op">,</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fake_to_real_port</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'server_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt><tt class="py-op">,</tt><tt class="py-string">'pass'</tt><tt class="py-op">:</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'remove'</tt><tt class="py-op">:</tt><tt class="py-name">data</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L675"></a><tt class="py-lineno"> 675</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L676"></a><tt class="py-lineno"> 676</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L677"></a><tt class="py-lineno"> 677</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.add_data_root"></a><div id="Socker_client.add_data_root-def"><a name="L678"></a><tt class="py-lineno"> 678</tt> <a class="py-toggle" href="#" id="Socker_client.add_data_root-toggle" onclick="return toggle('Socker_client.add_data_root');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#add_data_root">add_data_root</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.add_data_root-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.add_data_root-expanded"><a name="L679"></a><tt class="py-lineno"> 679</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L680"></a><tt class="py-lineno"> 680</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'act'</tt><tt class="py-op">:</tt><tt class="py-string">'add'</tt><tt class="py-op">,</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fake_to_real_port</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'pass'</tt><tt class="py-op">:</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'add'</tt><tt class="py-op">:</tt><tt class="py-name">data</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L681"></a><tt class="py-lineno"> 681</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L682"></a><tt class="py-lineno"> 682</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L683"></a><tt class="py-lineno"> 683</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.remove_data_root"></a><div id="Socker_client.remove_data_root-def"><a name="L684"></a><tt class="py-lineno"> 684</tt> <a class="py-toggle" href="#" id="Socker_client.remove_data_root-toggle" onclick="return toggle('Socker_client.remove_data_root');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#remove_data_root">remove_data_root</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.remove_data_root-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.remove_data_root-expanded"><a name="L685"></a><tt class="py-lineno"> 685</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L686"></a><tt class="py-lineno"> 686</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt class="py-name">data</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'act'</tt><tt class="py-op">:</tt><tt class="py-string">'remove'</tt><tt class="py-op">,</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">fake_to_real_port</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'pass'</tt><tt class="py-op">:</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'remove'</tt><tt class="py-op">:</tt><tt class="py-name">data</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L687"></a><tt class="py-lineno"> 687</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L688"></a><tt class="py-lineno"> 688</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L689"></a><tt class="py-lineno"> 689</tt>  <tt class="py-line"> </tt>
<a name="Socker_client.destroy"></a><div id="Socker_client.destroy-def"><a name="L690"></a><tt class="py-lineno"> 690</tt> <a class="py-toggle" href="#" id="Socker_client.destroy-toggle" onclick="return toggle('Socker_client.destroy');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Socker_client-class.html#destroy">destroy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Socker_client.destroy-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Socker_client.destroy-expanded"><a name="L691"></a><tt class="py-lineno"> 691</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">registered</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">:</tt> </tt>
<a name="L692"></a><tt class="py-lineno"> 692</tt>  <tt class="py-line">            <tt class="py-name">res</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_proxy</tt><tt class="py-op">.</tt><tt id="link-354" class="py-name"><a title="spade.dblite.Base.delete
spade.xmppd.modules.db_fake.DB.delete" class="py-name" href="#" onclick="return doclink('link-354', 'delete', 'link-298');">delete</a></tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-string">'handle'</tt><tt class="py-op">:</tt><tt class="py-name">registered</tt><tt class="py-op">[</tt><tt class="py-string">'handle'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'type_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_tguid</tt><tt class="py-op">+</tt><tt class="py-string">'_p%s'</tt><tt class="py-op">%</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">registered</tt><tt class="py-op">[</tt><tt class="py-string">'outside_port'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'server_guid'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sguid</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> <tt class="py-comment">#Send request to Socker</tt> </tt>
<a name="L693"></a><tt class="py-lineno"> 693</tt>  <tt class="py-line"> </tt>
<a name="L694"></a><tt class="py-lineno"> 694</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">res</tt><tt class="py-op">[</tt><tt class="py-string">'code'</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-number">1</tt><tt class="py-op">:</tt> </tt>
<a name="L695"></a><tt class="py-lineno"> 695</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L696"></a><tt class="py-lineno"> 696</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L697"></a><tt class="py-lineno"> 697</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L698"></a><tt class="py-lineno"> 698</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">res</tt> </tt>
</div></div><a name="L699"></a><tt class="py-lineno"> 699</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client"></a><div id="RPC_Client-def"><a name="L700"></a><tt class="py-lineno"> 700</tt> <a class="py-toggle" href="#" id="RPC_Client-toggle" onclick="return toggle('RPC_Client');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html">RPC_Client</a><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="RPC_Client-expanded"><a name="RPC_Client.__init__"></a><div id="RPC_Client.__init__-def"><a name="L701"></a><tt class="py-lineno"> 701</tt> <a class="py-toggle" href="#" id="RPC_Client.__init__-toggle" onclick="return toggle('RPC_Client.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">owner</tt><tt class="py-op">,</tt><tt class="py-param">socket</tt><tt class="py-op">,</tt><tt class="py-param">addr</tt><tt class="py-op">,</tt><tt class="py-param">host</tt><tt class="py-op">,</tt><tt class="py-param">port</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.__init__-expanded"><a name="L702"></a><tt class="py-lineno"> 702</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt> <tt class="py-op">=</tt> <tt class="py-name">socket</tt> </tt>
<a name="L703"></a><tt class="py-lineno"> 703</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt> <tt class="py-op">=</tt> <tt class="py-name">owner</tt> </tt>
<a name="L704"></a><tt class="py-lineno"> 704</tt>  <tt class="py-line"> </tt>
<a name="L705"></a><tt class="py-lineno"> 705</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">addr</tt> <tt class="py-op">=</tt> <tt class="py-name">addr</tt> </tt>
<a name="L706"></a><tt class="py-lineno"> 706</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">host</tt> <tt class="py-op">=</tt> <tt class="py-name">host</tt> </tt>
<a name="L707"></a><tt class="py-lineno"> 707</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">port</tt> <tt class="py-op">=</tt> <tt class="py-name">port</tt> </tt>
<a name="L708"></a><tt class="py-lineno"> 708</tt>  <tt class="py-line"> </tt>
<a name="L709"></a><tt class="py-lineno"> 709</tt>  <tt class="py-line"> </tt>
<a name="L710"></a><tt class="py-lineno"> 710</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stage</tt> <tt class="py-op">=</tt> <tt id="link-355" class="py-name"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_ZERO
spade.xmppd.xmppd.XMLRPC_STAGE_ZERO" class="py-name" href="#" onclick="return doclink('link-355', 'XMLRPC_STAGE_ZERO', 'link-14');">XMLRPC_STAGE_ZERO</a></tt> </tt>
<a name="L711"></a><tt class="py-lineno"> 711</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-356" class="py-name" targets="Method spade.xmppd.xmppd.RPC_Client.RPC_handler()=spade.xmppd.xmppd.RPC_Client-class.html#RPC_handler"><a title="spade.xmppd.xmppd.RPC_Client.RPC_handler" class="py-name" href="#" onclick="return doclink('link-356', 'RPC_handler', 'link-356');">RPC_handler</a></tt><tt class="py-op">(</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> </tt>
</div><a name="L712"></a><tt class="py-lineno"> 712</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.RPC_handler"></a><div id="RPC_Client.RPC_handler-def"><a name="L713"></a><tt class="py-lineno"> 713</tt> <a class="py-toggle" href="#" id="RPC_Client.RPC_handler-toggle" onclick="return toggle('RPC_Client.RPC_handler');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#RPC_handler">RPC_handler</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">data</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.RPC_handler-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.RPC_handler-expanded"><a name="L714"></a><tt class="py-lineno"> 714</tt>  <tt class="py-line">        <tt class="py-docstring">"Handler for incoming remote procedure calls"</tt> </tt>
<a name="L715"></a><tt class="py-lineno"> 715</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L716"></a><tt class="py-lineno"> 716</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stage</tt> <tt class="py-op">==</tt> <tt id="link-357" class="py-name"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_ZERO
spade.xmppd.xmppd.XMLRPC_STAGE_ZERO" class="py-name" href="#" onclick="return doclink('link-357', 'XMLRPC_STAGE_ZERO', 'link-14');">XMLRPC_STAGE_ZERO</a></tt><tt class="py-op">:</tt> </tt>
<a name="L717"></a><tt class="py-lineno"> 717</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stage</tt> <tt class="py-op">=</tt> <tt id="link-358" class="py-name"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_ONE
spade.xmppd.xmppd.XMLRPC_STAGE_ONE" class="py-name" href="#" onclick="return doclink('link-358', 'XMLRPC_STAGE_ONE', 'link-15');">XMLRPC_STAGE_ONE</a></tt> <tt class="py-comment">#Get client's headers out of the buffer</tt> </tt>
<a name="L718"></a><tt class="py-lineno"> 718</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stage</tt> <tt class="py-op">==</tt> <tt id="link-359" class="py-name"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_ONE
spade.xmppd.xmppd.XMLRPC_STAGE_ONE" class="py-name" href="#" onclick="return doclink('link-359', 'XMLRPC_STAGE_ONE', 'link-15');">XMLRPC_STAGE_ONE</a></tt><tt class="py-op">:</tt> </tt>
<a name="L719"></a><tt class="py-lineno"> 719</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stage</tt> <tt class="py-op">=</tt> <tt id="link-360" class="py-name"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_TWO
spade.xmppd.xmppd.XMLRPC_STAGE_TWO" class="py-name" href="#" onclick="return doclink('link-360', 'XMLRPC_STAGE_TWO', 'link-16');">XMLRPC_STAGE_TWO</a></tt> </tt>
<a name="L720"></a><tt class="py-lineno"> 720</tt>  <tt class="py-line"> </tt>
<a name="L721"></a><tt class="py-lineno"> 721</tt>  <tt class="py-line">                <tt class="py-name">params</tt><tt class="py-op">,</tt> <tt class="py-name">method</tt> <tt class="py-op">=</tt> <tt class="py-name">xmlrpclib</tt><tt class="py-op">.</tt><tt class="py-name">loads</tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt> </tt>
<a name="L722"></a><tt class="py-lineno"> 722</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">params</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L723"></a><tt class="py-lineno"> 723</tt>  <tt class="py-line">                    <tt class="py-name">aside</tt> <tt class="py-op">=</tt> <tt class="py-name">params</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L724"></a><tt class="py-lineno"> 724</tt>  <tt class="py-line">                    <tt class="py-name">aside</tt><tt class="py-op">[</tt><tt class="py-string">'_socket'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt> </tt>
<a name="L725"></a><tt class="py-lineno"> 725</tt>  <tt class="py-line">                    <tt class="py-name">aside</tt><tt class="py-op">[</tt><tt class="py-string">'_socket_info'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">host</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">port</tt><tt class="py-op">)</tt> </tt>
<a name="L726"></a><tt class="py-lineno"> 726</tt>  <tt class="py-line">                    <tt class="py-name">params</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">aside</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L727"></a><tt class="py-lineno"> 727</tt>  <tt class="py-line">                <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-361" class="py-name" targets="Method spade.xmppd.xmppd.RPC_Client.rpc_dispatch()=spade.xmppd.xmppd.RPC_Client-class.html#rpc_dispatch"><a title="spade.xmppd.xmppd.RPC_Client.rpc_dispatch" class="py-name" href="#" onclick="return doclink('link-361', 'rpc_dispatch', 'link-361');">rpc_dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">method</tt><tt class="py-op">,</tt> <tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
<a name="L728"></a><tt class="py-lineno"> 728</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">result</tt><tt class="py-op">,</tt><tt class="py-string">'faultCode'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L729"></a><tt class="py-lineno"> 729</tt>  <tt class="py-line">                    <tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">xmlrpclib</tt><tt class="py-op">.</tt><tt class="py-name">dumps</tt><tt class="py-op">(</tt><tt class="py-name">result</tt><tt class="py-op">)</tt> </tt>
<a name="L730"></a><tt class="py-lineno"> 730</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L731"></a><tt class="py-lineno"> 731</tt>  <tt class="py-line">                    <tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">xmlrpclib</tt><tt class="py-op">.</tt><tt class="py-name">dumps</tt><tt class="py-op">(</tt><tt class="py-name">result</tt><tt class="py-op">,</tt> <tt class="py-name">methodresponse</tt><tt class="py-op">=</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L732"></a><tt class="py-lineno"> 732</tt>  <tt class="py-line"> </tt>
<a name="L733"></a><tt class="py-lineno"> 733</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L734"></a><tt class="py-lineno"> 734</tt>  <tt class="py-line">            <tt class="py-name">response</tt> <tt class="py-op">=</tt> <tt class="py-name">xmlrpclib</tt><tt class="py-op">.</tt><tt class="py-name">dumps</tt><tt class="py-op">(</tt><tt class="py-name">xmlrpclib</tt><tt class="py-op">.</tt><tt class="py-name">Fault</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-string">"Socker(tm): %s"</tt><tt class="py-op">%</tt><tt class="py-name">traceback</tt><tt class="py-op">.</tt><tt class="py-name">format_exc</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L735"></a><tt class="py-lineno"> 735</tt>  <tt class="py-line"> </tt>
<a name="L736"></a><tt class="py-lineno"> 736</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">stage</tt> <tt class="py-op">==</tt> <tt id="link-362" class="py-name"><a title="spade.xmppd.modules.stream.XMLRPC_STAGE_TWO
spade.xmppd.xmppd.XMLRPC_STAGE_TWO" class="py-name" href="#" onclick="return doclink('link-362', 'XMLRPC_STAGE_TWO', 'link-16');">XMLRPC_STAGE_TWO</a></tt><tt class="py-op">:</tt> </tt>
<a name="L737"></a><tt class="py-lineno"> 737</tt>  <tt class="py-line">            <tt class="py-name">final_output</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">"HTTP/1.1 200 OK"</tt><tt class="py-op">,</tt><tt class="py-string">"Server: BlueBridge Socker(tm)"</tt><tt class="py-op">,</tt><tt class="py-string">"Content-Length: %i"</tt><tt class="py-op">%</tt><tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">response</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">"Connection: close"</tt><tt class="py-op">,</tt><tt class="py-string">"Content-Type: text/xml"</tt><tt class="py-op">,</tt><tt class="py-string">""</tt><tt class="py-op">,</tt><tt class="py-name">response</tt><tt class="py-op">]</tt> </tt>
<a name="L738"></a><tt class="py-lineno"> 738</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-363" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-363', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt class="py-string">'\n'</tt><tt class="py-op">.</tt><tt class="py-name">join</tt><tt class="py-op">(</tt><tt class="py-name">final_output</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L739"></a><tt class="py-lineno"> 739</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-364" class="py-name" targets="Method spade.xmppd.xmppd.RPC_Client.terminate()=spade.xmppd.xmppd.RPC_Client-class.html#terminate"><a title="spade.xmppd.xmppd.RPC_Client.terminate" class="py-name" href="#" onclick="return doclink('link-364', 'terminate', 'link-364');">terminate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L740"></a><tt class="py-lineno"> 740</tt>  <tt class="py-line"> </tt>
<a name="L741"></a><tt class="py-lineno"> 741</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.receive"></a><div id="RPC_Client.receive-def"><a name="L742"></a><tt class="py-lineno"> 742</tt> <a class="py-toggle" href="#" id="RPC_Client.receive-toggle" onclick="return toggle('RPC_Client.receive');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#receive">receive</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.receive-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.receive-expanded"><a name="L743"></a><tt class="py-lineno"> 743</tt>  <tt class="py-line">        <tt class="py-docstring">"""Reads all pending incoming data. Raises IOError on disconnect."""</tt> </tt>
<a name="L744"></a><tt class="py-lineno"> 744</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">received</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt class="py-name">recv</tt><tt class="py-op">(</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'MAXREQUESTLENGTH'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L745"></a><tt class="py-lineno"> 745</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-name">received</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L746"></a><tt class="py-lineno"> 746</tt>  <tt class="py-line"> </tt>
<a name="L747"></a><tt class="py-lineno"> 747</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">received</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> <tt class="py-comment"># length of 0 means disconnect</tt> </tt>
<a name="L748"></a><tt class="py-lineno"> 748</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">IOError</tt><tt class="py-op">(</tt><tt class="py-string">"Peer disconnected"</tt><tt class="py-op">)</tt> </tt>
<a name="L749"></a><tt class="py-lineno"> 749</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">received</tt> </tt>
</div><a name="L750"></a><tt class="py-lineno"> 750</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.send"></a><div id="RPC_Client.send-def"><a name="L751"></a><tt class="py-lineno"> 751</tt> <a class="py-toggle" href="#" id="RPC_Client.send-toggle" onclick="return toggle('RPC_Client.send');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#send">send</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">msg</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.send-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.send-expanded"><a name="L752"></a><tt class="py-lineno"> 752</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L753"></a><tt class="py-lineno"> 753</tt>  <tt class="py-line">            <tt class="py-name">totalsent</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L754"></a><tt class="py-lineno"> 754</tt>  <tt class="py-line">            <tt class="py-keyword">while</tt> <tt class="py-name">totalsent</tt> <tt class="py-op">&lt;</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt id="link-365" class="py-name"><a title="spade.pyparsing.ParseBaseException.msg" class="py-name" href="#" onclick="return doclink('link-365', 'msg', 'link-342');">msg</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L755"></a><tt class="py-lineno"> 755</tt>  <tt class="py-line">                <tt class="py-name">sent</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-366" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-366', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt id="link-367" class="py-name"><a title="spade.pyparsing.ParseBaseException.msg" class="py-name" href="#" onclick="return doclink('link-367', 'msg', 'link-342');">msg</a></tt><tt class="py-op">[</tt><tt class="py-name">totalsent</tt><tt class="py-op">:</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L756"></a><tt class="py-lineno"> 756</tt>  <tt class="py-line"><tt class="py-comment">#                print "sent",msg,sent</tt> </tt>
<a name="L757"></a><tt class="py-lineno"> 757</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">sent</tt> <tt class="py-op">==</tt> <tt class="py-number">0</tt><tt class="py-op">:</tt> </tt>
<a name="L758"></a><tt class="py-lineno"> 758</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-368" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.terminate" class="py-name" href="#" onclick="return doclink('link-368', 'terminate', 'link-364');">terminate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L759"></a><tt class="py-lineno"> 759</tt>  <tt class="py-line">                <tt class="py-name">totalsent</tt> <tt class="py-op">=</tt> <tt class="py-name">totalsent</tt> <tt class="py-op">+</tt> <tt class="py-name">sent</tt> </tt>
<a name="L760"></a><tt class="py-lineno"> 760</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L761"></a><tt class="py-lineno"> 761</tt>  <tt class="py-line">            <tt class="py-keyword">pass</tt> </tt>
</div><a name="L762"></a><tt class="py-lineno"> 762</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.fileno"></a><div id="RPC_Client.fileno-def"><a name="L763"></a><tt class="py-lineno"> 763</tt> <a class="py-toggle" href="#" id="RPC_Client.fileno-toggle" onclick="return toggle('RPC_Client.fileno');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#fileno">fileno</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-369" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-369', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="RPC_Client.getsockname"></a><div id="RPC_Client.getsockname-def"><a name="L764"></a><tt class="py-lineno"> 764</tt> <a class="py-toggle" href="#" id="RPC_Client.getsockname-toggle" onclick="return toggle('RPC_Client.getsockname');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#getsockname">getsockname</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-370" class="py-name" targets="Method spade.xmppd.xmppd.RPC_Client.getsockname()=spade.xmppd.xmppd.RPC_Client-class.html#getsockname"><a title="spade.xmppd.xmppd.RPC_Client.getsockname" class="py-name" href="#" onclick="return doclink('link-370', 'getsockname', 'link-370');">getsockname</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L765"></a><tt class="py-lineno"> 765</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.terminate"></a><div id="RPC_Client.terminate-def"><a name="L766"></a><tt class="py-lineno"> 766</tt> <a class="py-toggle" href="#" id="RPC_Client.terminate-toggle" onclick="return toggle('RPC_Client.terminate');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#terminate">terminate</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.terminate-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.terminate-expanded"><a name="L767"></a><tt class="py-lineno"> 767</tt>  <tt class="py-line">        <tt class="py-comment"># Handle our socket</tt> </tt>
<a name="L768"></a><tt class="py-lineno"> 768</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-371" class="py-name"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-371', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L769"></a><tt class="py-lineno"> 769</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt class="py-name">close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L770"></a><tt class="py-lineno"> 770</tt>  <tt class="py-line"> </tt>
<a name="L771"></a><tt class="py-lineno"> 771</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.rpc_dispatch"></a><div id="RPC_Client.rpc_dispatch-def"><a name="L772"></a><tt class="py-lineno"> 772</tt> <a class="py-toggle" href="#" id="RPC_Client.rpc_dispatch-toggle" onclick="return toggle('RPC_Client.rpc_dispatch');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#rpc_dispatch">rpc_dispatch</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">method</tt><tt class="py-op">,</tt> <tt class="py-param">params</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.rpc_dispatch-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.rpc_dispatch-expanded"><a name="L773"></a><tt class="py-lineno"> 773</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L774"></a><tt class="py-lineno"> 774</tt>  <tt class="py-line">            <tt class="py-comment"># We are forcing the 'export_' prefix on methods that are</tt> </tt>
<a name="L775"></a><tt class="py-lineno"> 775</tt>  <tt class="py-line">            <tt class="py-comment"># callable through XML-RPC to prevent potential security</tt> </tt>
<a name="L776"></a><tt class="py-lineno"> 776</tt>  <tt class="py-line">            <tt class="py-comment"># problems</tt> </tt>
<a name="L777"></a><tt class="py-lineno"> 777</tt>  <tt class="py-line">            <tt class="py-name">func</tt> <tt class="py-op">=</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt> <tt class="py-string">'rpcexport_'</tt> <tt class="py-op">+</tt> <tt class="py-name">method</tt><tt class="py-op">)</tt> </tt>
<a name="L778"></a><tt class="py-lineno"> 778</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">AttributeError</tt><tt class="py-op">:</tt> </tt>
<a name="L779"></a><tt class="py-lineno"> 779</tt>  <tt class="py-line">            <tt class="py-keyword">raise</tt> <tt class="py-name">Exception</tt><tt class="py-op">(</tt><tt class="py-string">'method "%s" is not supported'</tt> <tt class="py-op">%</tt> <tt class="py-name">method</tt><tt class="py-op">)</tt> </tt>
<a name="L780"></a><tt class="py-lineno"> 780</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L781"></a><tt class="py-lineno"> 781</tt>  <tt class="py-line">            <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-name">func</tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">params</tt><tt class="py-op">)</tt> </tt>
<a name="L782"></a><tt class="py-lineno"> 782</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">result</tt><tt class="py-op">,</tt><tt class="py-string">'faultCode'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L783"></a><tt class="py-lineno"> 783</tt>  <tt class="py-line">                <tt class="py-name">result</tt> <tt class="py-op">=</tt> <tt class="py-op">(</tt><tt class="py-name">result</tt><tt class="py-op">,</tt><tt class="py-op">)</tt> </tt>
<a name="L784"></a><tt class="py-lineno"> 784</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-name">result</tt> </tt>
</div><a name="L785"></a><tt class="py-lineno"> 785</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.rpcexport_socker"></a><div id="RPC_Client.rpcexport_socker-def"><a name="L786"></a><tt class="py-lineno"> 786</tt> <a class="py-toggle" href="#" id="RPC_Client.rpcexport_socker-toggle" onclick="return toggle('RPC_Client.rpcexport_socker');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#rpcexport_socker">rpcexport_socker</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">inpt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.rpcexport_socker-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.rpcexport_socker-expanded"><a name="L787"></a><tt class="py-lineno"> 787</tt>  <tt class="py-line">        <tt class="py-docstring">"RPC endpoint for all Socker&#8482; related inquiries."</tt> </tt>
<a name="L788"></a><tt class="py-lineno"> 788</tt>  <tt class="py-line"> </tt>
<a name="L789"></a><tt class="py-lineno"> 789</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'pass'</tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">inpt</tt> <tt class="py-keyword">or</tt> <tt class="py-name">inpt</tt><tt class="py-op">[</tt><tt class="py-string">'pass'</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-string">'code'</tt><tt class="py-op">:</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-string">'msg'</tt><tt class="py-op">:</tt><tt class="py-string">'PASS-BAD'</tt><tt class="py-op">}</tt> </tt>
<a name="L790"></a><tt class="py-lineno"> 790</tt>  <tt class="py-line"> </tt>
<a name="L791"></a><tt class="py-lineno"> 791</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">inpt</tt><tt class="py-op">[</tt><tt class="py-string">'act'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'bc'</tt><tt class="py-op">:</tt> </tt>
<a name="L792"></a><tt class="py-lineno"> 792</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L793"></a><tt class="py-lineno"> 793</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-372" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-372', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-373" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-373', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt id="link-374" class="py-name"><a title="spade.xmpp.simplexml.Node" class="py-name" href="#" onclick="return doclink('link-374', 'Node', 'link-152');">Node</a></tt><tt class="py-op">(</tt><tt class="py-name">node</tt><tt class="py-op">=</tt><tt class="py-name">inpt</tt><tt class="py-op">[</tt><tt class="py-string">'stanza'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt id="link-375" class="py-name" targets="Class spade.xmppd.xmppd.Session_Dummy=spade.xmppd.xmppd.Session_Dummy-class.html"><a title="spade.xmppd.xmppd.Session_Dummy" class="py-name" href="#" onclick="return doclink('link-375', 'Session_Dummy', 'link-375');">Session_Dummy</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L794"></a><tt class="py-lineno"> 794</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L795"></a><tt class="py-lineno"> 795</tt>  <tt class="py-line">                <tt class="py-keyword">pass</tt> </tt>
<a name="L796"></a><tt class="py-lineno"> 796</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-string">'code'</tt><tt class="py-op">:</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-string">'msg'</tt><tt class="py-op">:</tt><tt class="py-string">'BC-OK'</tt><tt class="py-op">}</tt> </tt>
<a name="L797"></a><tt class="py-lineno"> 797</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">inpt</tt><tt class="py-op">[</tt><tt class="py-string">'act'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'sd'</tt><tt class="py-op">:</tt> </tt>
<a name="L798"></a><tt class="py-lineno"> 798</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L799"></a><tt class="py-lineno"> 799</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">inpt</tt><tt class="py-op">[</tt><tt class="py-string">'time'</tt><tt class="py-op">]</tt> <tt class="py-op">&gt;</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L800"></a><tt class="py-lineno"> 800</tt>  <tt class="py-line">                    <tt id="link-376" class="py-name" targets="Method spade.xmpp.client.CommonClient.event()=spade.xmpp.client.CommonClient-class.html#event"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-376', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">timeout</tt><tt class="py-op">(</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">-</tt><tt class="py-name">inpt</tt><tt class="py-op">[</tt><tt class="py-string">'time'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-377" class="py-name" targets="Method spade.xmppd.xmppd.Server._lib_out()=spade.xmppd.xmppd.Server-class.html#_lib_out"><a title="spade.xmppd.xmppd.Server._lib_out" class="py-name" href="#" onclick="return doclink('link-377', '_lib_out', 'link-377');">_lib_out</a></tt><tt class="py-op">)</tt> </tt>
<a name="L801"></a><tt class="py-lineno"> 801</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L802"></a><tt class="py-lineno"> 802</tt>  <tt class="py-line">                    <tt id="link-378" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-378', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">timeout</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-379" class="py-name"><a title="spade.xmppd.xmppd.Server._lib_out" class="py-name" href="#" onclick="return doclink('link-379', '_lib_out', 'link-377');">_lib_out</a></tt><tt class="py-op">)</tt> </tt>
<a name="L803"></a><tt class="py-lineno"> 803</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L804"></a><tt class="py-lineno"> 804</tt>  <tt class="py-line">                <tt class="py-keyword">pass</tt> </tt>
<a name="L805"></a><tt class="py-lineno"> 805</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-string">'code'</tt><tt class="py-op">:</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-string">'msg'</tt><tt class="py-op">:</tt><tt class="py-string">'SD-OK'</tt><tt class="py-op">}</tt> </tt>
<a name="L806"></a><tt class="py-lineno"> 806</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-string">'code'</tt><tt class="py-op">:</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-string">'msg'</tt><tt class="py-op">:</tt><tt class="py-string">'RC-BAD'</tt><tt class="py-op">}</tt> </tt>
</div><a name="L807"></a><tt class="py-lineno"> 807</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.rpcexport_hello"></a><div id="RPC_Client.rpcexport_hello-def"><a name="L808"></a><tt class="py-lineno"> 808</tt> <a class="py-toggle" href="#" id="RPC_Client.rpcexport_hello-toggle" onclick="return toggle('RPC_Client.rpcexport_hello');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#rpcexport_hello">rpcexport_hello</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">inpt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.rpcexport_hello-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.rpcexport_hello-expanded"><a name="L809"></a><tt class="py-lineno"> 809</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-string">'code'</tt><tt class="py-op">:</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-string">'msg'</tt><tt class="py-op">:</tt><tt class="py-string">'Hello!'</tt><tt class="py-op">}</tt> </tt>
</div><a name="L810"></a><tt class="py-lineno"> 810</tt>  <tt class="py-line"> </tt>
<a name="RPC_Client.rpcexport_status"></a><div id="RPC_Client.rpcexport_status-def"><a name="L811"></a><tt class="py-lineno"> 811</tt> <a class="py-toggle" href="#" id="RPC_Client.rpcexport_status-toggle" onclick="return toggle('RPC_Client.rpcexport_status');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.RPC_Client-class.html#rpcexport_status">rpcexport_status</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">inpt</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="RPC_Client.rpcexport_status-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="RPC_Client.rpcexport_status-expanded"><a name="L812"></a><tt class="py-lineno"> 812</tt>  <tt class="py-line">        <tt class="py-docstring">"RPC endpoint to get status information"</tt> </tt>
<a name="L813"></a><tt class="py-lineno"> 813</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">{</tt><tt class="py-string">'code'</tt><tt class="py-op">:</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-string">'msg'</tt><tt class="py-op">:</tt><tt class="py-string">'RC-OK'</tt><tt class="py-op">,</tt><tt class="py-string">'data'</tt><tt class="py-op">:</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-380" class="py-name" targets="Method spade.xmppd.xmppd.Server.tool_get_status()=spade.xmppd.xmppd.Server-class.html#tool_get_status"><a title="spade.xmppd.xmppd.Server.tool_get_status" class="py-name" href="#" onclick="return doclink('link-380', 'tool_get_status', 'link-380');">tool_get_status</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">}</tt> </tt>
</div></div><a name="L814"></a><tt class="py-lineno"> 814</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager"></a><div id="multisession_manager-def"><a name="L815"></a><tt class="py-lineno"> 815</tt> <a class="py-toggle" href="#" id="multisession_manager-toggle" onclick="return toggle('multisession_manager');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager-class.html">multisession_manager</a><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="multisession_manager-expanded"><a name="L816"></a><tt class="py-lineno"> 816</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.__init__"></a><div id="multisession_manager.__init__-def"><a name="L817"></a><tt class="py-lineno"> 817</tt> <a class="py-toggle" href="#" id="multisession_manager.__init__-toggle" onclick="return toggle('multisession_manager.__init__');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">owner</tt><tt class="py-op">,</tt><tt class="py-param">nthreads</tt><tt class="py-op">=</tt><tt class="py-number">128</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++++++"></div><div id="multisession_manager.__init__-expanded"><a name="L818"></a><tt class="py-lineno"> 818</tt>  <tt class="py-line"> </tt>
<a name="L819"></a><tt class="py-lineno"> 819</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt> <tt class="py-op">=</tt> <tt class="py-name">owner</tt> </tt>
<a name="L820"></a><tt class="py-lineno"> 820</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">nthreads</tt> <tt class="py-op">=</tt> <tt class="py-name">nthreads</tt> </tt>
<a name="L821"></a><tt class="py-lineno"> 821</tt>  <tt class="py-line"> </tt>
<a name="L822"></a><tt class="py-lineno"> 822</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">threads</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L823"></a><tt class="py-lineno"> 823</tt>  <tt class="py-line"> </tt>
<a name="L824"></a><tt class="py-lineno"> 824</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">i</tt> <tt class="py-keyword">in</tt> <tt class="py-name">range</tt><tt class="py-op">(</tt><tt class="py-number">0</tt><tt class="py-op">,</tt><tt class="py-name">nthreads</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L825"></a><tt class="py-lineno"> 825</tt>  <tt class="py-line">                        <tt class="py-name">t</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-381" class="py-name" targets="Class spade.xmppd.xmppd.multisession_manager.multisession_thread=spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html"><a title="spade.xmppd.xmppd.multisession_manager.multisession_thread" class="py-name" href="#" onclick="return doclink('link-381', 'multisession_thread', 'link-381');">multisession_thread</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">,</tt><tt class="py-name">i</tt><tt class="py-op">)</tt> </tt>
<a name="L826"></a><tt class="py-lineno"> 826</tt>  <tt class="py-line">                        <tt class="py-name">t</tt><tt class="py-op">.</tt><tt id="link-382" class="py-name" targets="Method spade.spade_backend.SpadeBackend.start()=spade.spade_backend.SpadeBackend-class.html#start"><a title="spade.spade_backend.SpadeBackend.start" class="py-name" href="#" onclick="return doclink('link-382', 'start', 'link-382');">start</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L827"></a><tt class="py-lineno"> 827</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">threads</tt><tt class="py-op">[</tt><tt class="py-name">i</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">t</tt> </tt>
</div><a name="L828"></a><tt class="py-lineno"> 828</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.destroy"></a><div id="multisession_manager.destroy-def"><a name="L829"></a><tt class="py-lineno"> 829</tt> <a class="py-toggle" href="#" id="multisession_manager.destroy-toggle" onclick="return toggle('multisession_manager.destroy');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager-class.html#destroy">destroy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.destroy-collapsed" style="display:none;" pad="++++" indent="++++++++++++"></div><div id="multisession_manager.destroy-expanded"><a name="L830"></a><tt class="py-lineno"> 830</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">t</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">threads</tt><tt class="py-op">.</tt><tt id="link-383" class="py-name" targets="Method spade.odict.odict.values()=spade.odict.odict-class.html#values,Method spade.pyparsing.ParseResults.values()=spade.pyparsing.ParseResults-class.html#values"><a title="spade.odict.odict.values
spade.pyparsing.ParseResults.values" class="py-name" href="#" onclick="return doclink('link-383', 'values', 'link-383');">values</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">t</tt><tt class="py-op">.</tt><tt id="link-384" class="py-name" targets="Method spade.Agent.AbstractAgent.stop()=spade.Agent.AbstractAgent-class.html#stop,Method spade.Behaviour.TimeOutBehaviour.stop()=spade.Behaviour.TimeOutBehaviour-class.html#stop,Method spade.MTP.MTP.stop()=spade.MTP.MTP-class.html#stop,Method spade.wui.WUI.stop()=spade.wui.WUI-class.html#stop,Method spade.xmppd.xmppd.multisession_manager.multisession_thread.stop()=spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#stop"><a title="spade.Agent.AbstractAgent.stop
spade.Behaviour.TimeOutBehaviour.stop
spade.MTP.MTP.stop
spade.wui.WUI.stop
spade.xmppd.xmppd.multisession_manager.multisession_thread.stop" class="py-name" href="#" onclick="return doclink('link-384', 'stop', 'link-384');">stop</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L831"></a><tt class="py-lineno"> 831</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.select_thread"></a><div id="multisession_manager.select_thread-def"><a name="L832"></a><tt class="py-lineno"> 832</tt> <a class="py-toggle" href="#" id="multisession_manager.select_thread-toggle" onclick="return toggle('multisession_manager.select_thread');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager-class.html#select_thread">select_thread</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.select_thread-collapsed" style="display:none;" pad="++++" indent="++++++++++++"></div><div id="multisession_manager.select_thread-expanded"><a name="L833"></a><tt class="py-lineno"> 833</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">random</tt><tt class="py-op">.</tt><tt class="py-name">choice</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">threads</tt><tt class="py-op">.</tt><tt id="link-385" class="py-name"><a title="spade.odict.odict.values
spade.pyparsing.ParseResults.values" class="py-name" href="#" onclick="return doclink('link-385', 'values', 'link-383');">values</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
</div><a name="L834"></a><tt class="py-lineno"> 834</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.registersession"></a><div id="multisession_manager.registersession-def"><a name="L835"></a><tt class="py-lineno"> 835</tt> <a class="py-toggle" href="#" id="multisession_manager.registersession-toggle" onclick="return toggle('multisession_manager.registersession');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager-class.html#registersession">registersession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.registersession-collapsed" style="display:none;" pad="++++" indent="++++++++++++"></div><div id="multisession_manager.registersession-expanded"><a name="L836"></a><tt class="py-lineno"> 836</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-386" class="py-name" targets="Method spade.xmppd.xmppd.multisession_manager.select_thread()=spade.xmppd.xmppd.multisession_manager-class.html#select_thread"><a title="spade.xmppd.xmppd.multisession_manager.select_thread" class="py-name" href="#" onclick="return doclink('link-386', 'select_thread', 'link-386');">select_thread</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-387" class="py-name" targets="Method spade.xmppd.xmppd.Server.registersession()=spade.xmppd.xmppd.Server-class.html#registersession,Method spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession()=spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#registersession,Method spade.xmppd.xmppd.multisession_manager.registersession()=spade.xmppd.xmppd.multisession_manager-class.html#registersession"><a title="spade.xmppd.xmppd.Server.registersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession
spade.xmppd.xmppd.multisession_manager.registersession" class="py-name" href="#" onclick="return doclink('link-387', 'registersession', 'link-387');">registersession</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
</div><a name="L837"></a><tt class="py-lineno"> 837</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.unregistersession"></a><div id="multisession_manager.unregistersession-def"><a name="L838"></a><tt class="py-lineno"> 838</tt> <a class="py-toggle" href="#" id="multisession_manager.unregistersession-toggle" onclick="return toggle('multisession_manager.unregistersession');">-</a><tt class="py-line">        <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager-class.html#unregistersession">unregistersession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.unregistersession-collapsed" style="display:none;" pad="++++" indent="++++++++++++"></div><div id="multisession_manager.unregistersession-expanded"><a name="L839"></a><tt class="py-lineno"> 839</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">threads</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">thread_id</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-388" class="py-name"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-388', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
</div><a name="L840"></a><tt class="py-lineno"> 840</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.multisession_thread"></a><div id="multisession_manager.multisession_thread-def"><a name="L841"></a><tt class="py-lineno"> 841</tt> <a class="py-toggle" href="#" id="multisession_manager.multisession_thread-toggle" onclick="return toggle('multisession_manager.multisession_thread');">-</a><tt class="py-line">        <tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html">multisession_thread</a><tt class="py-op">(</tt><tt class="py-base-class">threading</tt><tt class="py-op">.</tt><tt class="py-base-class">Thread</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.multisession_thread-collapsed" style="display:none;" pad="++++" indent="++++++++++++"></div><div id="multisession_manager.multisession_thread-expanded"><a name="L842"></a><tt class="py-lineno"> 842</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.multisession_thread.__init__"></a><div id="multisession_manager.multisession_thread.__init__-def"><a name="L843"></a><tt class="py-lineno"> 843</tt> <a class="py-toggle" href="#" id="multisession_manager.multisession_thread.__init__-toggle" onclick="return toggle('multisession_manager.multisession_thread.__init__');">-</a><tt class="py-line">                <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">owner</tt><tt class="py-op">,</tt><tt class="py-param">index</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.multisession_thread.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++++++++++++++"></div><div id="multisession_manager.multisession_thread.__init__-expanded"><a name="L844"></a><tt class="py-lineno"> 844</tt>  <tt class="py-line"> </tt>
<a name="L845"></a><tt class="py-lineno"> 845</tt>  <tt class="py-line">                        <tt class="py-name">threading</tt><tt class="py-op">.</tt><tt class="py-name">Thread</tt><tt class="py-op">.</tt><tt id="link-389" class="py-name" targets="Method spade.ACLMessage.ACLMessage.__init__()=spade.ACLMessage.ACLMessage-class.html#__init__,Method spade.ACLParser.ACLParser.__init__()=spade.ACLParser.ACLParser-class.html#__init__,Method spade.ACLParser.ACLxmlParser.__init__()=spade.ACLParser.ACLxmlParser-class.html#__init__,Method spade.AID.aid.__init__()=spade.AID.aid-class.html#__init__,Method spade.AMS.AMS.DefaultBehaviour.__init__()=spade.AMS.AMS.DefaultBehaviour-class.html#__init__,Method spade.AMS.AMS.ModifyBehaviour.__init__()=spade.AMS.AMS.ModifyBehaviour-class.html#__init__,Method spade.AMS.AMS.PlatformBehaviour.__init__()=spade.AMS.AMS.PlatformBehaviour-class.html#__init__,Method spade.AMS.AMS.RegisterBehaviour.__init__()=spade.AMS.AMS.RegisterBehaviour-class.html#__init__,Method spade.AMS.AMS.SearchBehaviour.__init__()=spade.AMS.AMS.SearchBehaviour-class.html#__init__,Method spade.AMS.AMS.__init__()=spade.AMS.AMS-class.html#__init__,Method spade.AMS.AmsAgentDescription.__init__()=spade.AMS.AmsAgentDescription-class.html#__init__,Method spade.Agent.AbstractAgent.__init__()=spade.Agent.AbstractAgent-class.html#__init__,Method spade.Agent.Agent.__init__()=spade.Agent.Agent-class.html#__init__,Method spade.Agent.PlatformAgent.__init__()=spade.Agent.PlatformAgent-class.html#__init__,Method spade.Agent.jabberProcess.__init__()=spade.Agent.jabberProcess-class.html#__init__,Method spade.BasicFipaDateTime.BasicFipaDateTime.__init__()=spade.BasicFipaDateTime.BasicFipaDateTime-class.html#__init__,Method spade.Behaviour.ACLTemplate.__init__()=spade.Behaviour.ACLTemplate-class.html#__init__,Method spade.Behaviour.ANDTemplate.__init__()=spade.Behaviour.ANDTemplate-class.html#__init__,Method spade.Behaviour.Behaviour.__init__()=spade.Behaviour.Behaviour-class.html#__init__,Method spade.Behaviour.BehaviourTemplate.__init__()=spade.Behaviour.BehaviourTemplate-class.html#__init__,Method spade.Behaviour.EventBehaviour.__init__()=spade.Behaviour.EventBehaviour-class.html#__init__,Method spade.Behaviour.FSMBehaviour.__init__()=spade.Behaviour.FSMBehaviour-class.html#__init__,Method spade.Behaviour.MessageTemplate.__init__()=spade.Behaviour.MessageTemplate-class.html#__init__,Method spade.Behaviour.NOTTemplate.__init__()=spade.Behaviour.NOTTemplate-class.html#__init__,Method spade.Behaviour.ORTemplate.__init__()=spade.Behaviour.ORTemplate-class.html#__init__,Method spade.Behaviour.OneShotBehaviour.__init__()=spade.Behaviour.OneShotBehaviour-class.html#__init__,Method spade.Behaviour.PeriodicBehaviour.__init__()=spade.Behaviour.PeriodicBehaviour-class.html#__init__,Method spade.Behaviour.TimeOutBehaviour.__init__()=spade.Behaviour.TimeOutBehaviour-class.html#__init__,Method spade.Behaviour.XORTemplate.__init__()=spade.Behaviour.XORTemplate-class.html#__init__,Method spade.DF.DF.DefaultBehaviour.__init__()=spade.DF.DF.DefaultBehaviour-class.html#__init__,Method spade.DF.DF.ModifyBehaviour.__init__()=spade.DF.DF.ModifyBehaviour-class.html#__init__,Method spade.DF.DF.RegisterBehaviour.__init__()=spade.DF.DF.RegisterBehaviour-class.html#__init__,Method spade.DF.DF.SearchBehaviour.__init__()=spade.DF.DF.SearchBehaviour-class.html#__init__,Method spade.DF.DF.__init__()=spade.DF.DF-class.html#__init__,Method spade.DF.DfAgentDescription.__init__()=spade.DF.DfAgentDescription-class.html#__init__,Method spade.DF.Service.__init__()=spade.DF.Service-class.html#__init__,Method spade.DF.ServiceDescription.__init__()=spade.DF.ServiceDescription-class.html#__init__,Method spade.ECLiPSeKB.ECLiPSeKB.__init__()=spade.ECLiPSeKB.ECLiPSeKB-class.html#__init__,Method spade.Envelope.Envelope.__init__()=spade.Envelope.Envelope-class.html#__init__,Method spade.FIPAMessage.FipaMessage.__init__()=spade.FIPAMessage.FipaMessage-class.html#__init__,Method spade.Flora2KB.Flora2KB.__init__()=spade.Flora2KB.Flora2KB-class.html#__init__,Method spade.MTP.MTP.__init__()=spade.MTP.MTP-class.html#__init__,Method spade.MessageReceiver.MessageReceiver.__init__()=spade.MessageReceiver.MessageReceiver-class.html#__init__,Method spade.Organization.BanedUser.__init__()=spade.Organization.BanedUser-class.html#__init__,Method spade.Organization.CreationError.__init__()=spade.Organization.CreationError-class.html#__init__,Method spade.Organization.DestroyError.__init__()=spade.Organization.DestroyError-class.html#__init__,Method spade.Organization.JoinError.__init__()=spade.Organization.JoinError-class.html#__init__,Method spade.Organization.LastOwner.__init__()=spade.Organization.LastOwner-class.html#__init__,Method spade.Organization.LockedOrganization.__init__()=spade.Organization.LockedOrganization-class.html#__init__,Method spade.Organization.MaximumUsers.__init__()=spade.Organization.MaximumUsers-class.html#__init__,Method spade.Organization.MemberOfFederation.__init__()=spade.Organization.MemberOfFederation-class.html#__init__,Method spade.Organization.MembersOnly.__init__()=spade.Organization.MembersOnly-class.html#__init__,Method spade.Organization.NickNameConflict.__init__()=spade.Organization.NickNameConflict-class.html#__init__,Method spade.Organization.NotOwner.__init__()=spade.Organization.NotOwner-class.html#__init__,Method spade.Organization.NotSupervisor.__init__()=spade.Organization.NotSupervisor-class.html#__init__,Method spade.Organization.NotValidGoal.__init__()=spade.Organization.NotValidGoal-class.html#__init__,Method spade.Organization.NotValidName.__init__()=spade.Organization.NotValidName-class.html#__init__,Method spade.Organization.NotValidType.__init__()=spade.Organization.NotValidType-class.html#__init__,Method spade.Organization.NotValidUnit.__init__()=spade.Organization.NotValidUnit-class.html#__init__,Method spade.Organization.Organization.CreateRoomBehaviour.__init__()=spade.Organization.Organization.CreateRoomBehaviour-class.html#__init__,Method spade.Organization.Organization.CreateTeamBehaviour.__init__()=spade.Organization.Organization.CreateTeamBehaviour-class.html#__init__,Method spade.Organization.Organization.DestroyBehaviour.__init__()=spade.Organization.Organization.DestroyBehaviour-class.html#__init__,Method spade.Organization.Organization.GetRegistrationFormBehaviour.__init__()=spade.Organization.Organization.GetRegistrationFormBehaviour-class.html#__init__,Method spade.Organization.Organization.GetUnitInfoBehaviour.__init__()=spade.Organization.Organization.GetUnitInfoBehaviour-class.html#__init__,Method spade.Organization.Organization.GetUnitListBehaviour.__init__()=spade.Organization.Organization.GetUnitListBehaviour-class.html#__init__,Method spade.Organization.Organization.IsMemberBehaviour.__init__()=spade.Organization.Organization.IsMemberBehaviour-class.html#__init__,Method spade.Organization.Organization.MyJoinRoomBehaviour.__init__()=spade.Organization.Organization.MyJoinRoomBehaviour-class.html#__init__,Method spade.Organization.Organization.SendRegistrationFormBehaviour.__init__()=spade.Organization.Organization.SendRegistrationFormBehaviour-class.html#__init__,Method spade.Organization.Organization.TestRoomNameBehaviour.__init__()=spade.Organization.Organization.TestRoomNameBehaviour-class.html#__init__,Method spade.Organization.Organization.__init__()=spade.Organization.Organization-class.html#__init__,Method spade.Organization.PaswordNeeded.__init__()=spade.Organization.PaswordNeeded-class.html#__init__,Method spade.Organization.Unavailable.__init__()=spade.Organization.Unavailable-class.html#__init__,Method spade.Organization.UnavailableFunction.__init__()=spade.Organization.UnavailableFunction-class.html#__init__,Method spade.Organization_new.BanedUser.__init__()=spade.Organization_new.BanedUser-class.html#__init__,Method spade.Organization_new.CreationError.__init__()=spade.Organization_new.CreationError-class.html#__init__,Method spade.Organization_new.DestroyError.__init__()=spade.Organization_new.DestroyError-class.html#__init__,Method spade.Organization_new.JoinError.__init__()=spade.Organization_new.JoinError-class.html#__init__,Method spade.Organization_new.LastOwner.__init__()=spade.Organization_new.LastOwner-class.html#__init__,Method spade.Organization_new.LockedOrganization.__init__()=spade.Organization_new.LockedOrganization-class.html#__init__,Method spade.Organization_new.MaximumUsers.__init__()=spade.Organization_new.MaximumUsers-class.html#__init__,Method spade.Organization_new.MemberOfFederation.__init__()=spade.Organization_new.MemberOfFederation-class.html#__init__,Method spade.Organization_new.MembersOnly.__init__()=spade.Organization_new.MembersOnly-class.html#__init__,Method spade.Organization_new.NickNameConflict.__init__()=spade.Organization_new.NickNameConflict-class.html#__init__,Method spade.Organization_new.NotCreatePermision.__init__()=spade.Organization_new.NotCreatePermision-class.html#__init__,Method spade.Organization_new.NotSupervisor.__init__()=spade.Organization_new.NotSupervisor-class.html#__init__,Method spade.Organization_new.NotValidGoal.__init__()=spade.Organization_new.NotValidGoal-class.html#__init__,Method spade.Organization_new.NotValidName.__init__()=spade.Organization_new.NotValidName-class.html#__init__,Method spade.Organization_new.NotValidType.__init__()=spade.Organization_new.NotValidType-class.html#__init__,Method spade.Organization_new.NotValidUnit.__init__()=spade.Organization_new.NotValidUnit-class.html#__init__,Method spade.Organization_new.Organization_new.CreateRoomBehaviour.__init__()=spade.Organization_new.Organization_new.CreateRoomBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.CreateTeamBehaviour.__init__()=spade.Organization_new.Organization_new.CreateTeamBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.DestroyBehaviour.__init__()=spade.Organization_new.Organization_new.DestroyBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.GetRegistrationFormBehaviour.__init__()=spade.Organization_new.Organization_new.GetRegistrationFormBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.GetUnitInfoBehaviour.__init__()=spade.Organization_new.Organization_new.GetUnitInfoBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.GetUnitListBehaviour.__init__()=spade.Organization_new.Organization_new.GetUnitListBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.IsMemberBehaviour.__init__()=spade.Organization_new.Organization_new.IsMemberBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.MyJoinRoomBehaviour.__init__()=spade.Organization_new.Organization_new.MyJoinRoomBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.SendRegistrationFormBehaviour.__init__()=spade.Organization_new.Organization_new.SendRegistrationFormBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.TestRoomNameBehaviour.__init__()=spade.Organization_new.Organization_new.TestRoomNameBehaviour-class.html#__init__,Method spade.Organization_new.Organization_new.__init__()=spade.Organization_new.Organization_new-class.html#__init__,Method spade.Organization_new.PaswordNeeded.__init__()=spade.Organization_new.PaswordNeeded-class.html#__init__,Method spade.Organization_new.Unavailable.__init__()=spade.Organization_new.Unavailable-class.html#__init__,Method spade.Organization_new.UnavailableFunction.__init__()=spade.Organization_new.UnavailableFunction-class.html#__init__,Method spade.Platform.PlatformRestart.__init__()=spade.Platform.PlatformRestart-class.html#__init__,Method spade.Platform.SpadePlatform.RouteBehaviour.__init__()=spade.Platform.SpadePlatform.RouteBehaviour-class.html#__init__,Method spade.Platform.SpadePlatform.__init__()=spade.Platform.SpadePlatform-class.html#__init__,Method spade.RDF0Parser.RDF0Parser.__init__()=spade.RDF0Parser.RDF0Parser-class.html#__init__,Method spade.RPC.RPCClientBehaviour.__init__()=spade.RPC.RPCClientBehaviour-class.html#__init__,Method spade.ReceivedObject.ReceivedObject.__init__()=spade.ReceivedObject.ReceivedObject-class.html#__init__,Method spade.SIMBA.SIMBA.OutboxBehaviour.__init__()=spade.SIMBA.SIMBA.OutboxBehaviour-class.html#__init__,Method spade.SIMBA.SIMBA.__init__()=spade.SIMBA.SIMBA-class.html#__init__,Method spade.SL0Parser.SL0Parser.__init__()=spade.SL0Parser.SL0Parser-class.html#__init__,Method spade.SPARQLKB.SPARQLKB.__init__()=spade.SPARQLKB.SPARQLKB-class.html#__init__,Method spade.SWIKB.SWIKB.__init__()=spade.SWIKB.SWIKB-class.html#__init__,Method spade.SpadeConfigParser.ConfigParser.__init__()=spade.SpadeConfigParser.ConfigParser-class.html#__init__,Method spade.SpadeConfigParser.spadeXML.__init__()=spade.SpadeConfigParser.spadeXML-class.html#__init__,Method spade.SpadeConfigParser.spadeXMLHandler.__init__()=spade.SpadeConfigParser.spadeXMLHandler-class.html#__init__,Method spade.Unit.BanedUser.__init__()=spade.Unit.BanedUser-class.html#__init__,Method spade.Unit.CreationError.__init__()=spade.Unit.CreationError-class.html#__init__,Method spade.Unit.DestroyError.__init__()=spade.Unit.DestroyError-class.html#__init__,Method spade.Unit.JoinError.__init__()=spade.Unit.JoinError-class.html#__init__,Method spade.Unit.LastOwner.__init__()=spade.Unit.LastOwner-class.html#__init__,Method spade.Unit.LockedUnit.__init__()=spade.Unit.LockedUnit-class.html#__init__,Method spade.Unit.MaximumUsers.__init__()=spade.Unit.MaximumUsers-class.html#__init__,Method spade.Unit.MembersOnly.__init__()=spade.Unit.MembersOnly-class.html#__init__,Method spade.Unit.NickNameConflict.__init__()=spade.Unit.NickNameConflict-class.html#__init__,Method spade.Unit.NotAdmin.__init__()=spade.Unit.NotAdmin-class.html#__init__,Method spade.Unit.NotSupervisor.__init__()=spade.Unit.NotSupervisor-class.html#__init__,Method spade.Unit.NotValidGoal.__init__()=spade.Unit.NotValidGoal-class.html#__init__,Method spade.Unit.NotValidGoalChange.__init__()=spade.Unit.NotValidGoalChange-class.html#__init__,Method spade.Unit.NotValidName.__init__()=spade.Unit.NotValidName-class.html#__init__,Method spade.Unit.NotValidType.__init__()=spade.Unit.NotValidType-class.html#__init__,Method spade.Unit.NotValidUnit.__init__()=spade.Unit.NotValidUnit-class.html#__init__,Method spade.Unit.PaswordNeeded.__init__()=spade.Unit.PaswordNeeded-class.html#__init__,Method spade.Unit.Unavailable.__init__()=spade.Unit.Unavailable-class.html#__init__,Method spade.Unit.Unit.AddAdminBehaviour.__init__()=spade.Unit.Unit.AddAdminBehaviour-class.html#__init__,Method spade.Unit.Unit.AddBanAgentBehaviour.__init__()=spade.Unit.Unit.AddBanAgentBehaviour-class.html#__init__,Method spade.Unit.Unit.AddModeratorBehaviour.__init__()=spade.Unit.Unit.AddModeratorBehaviour-class.html#__init__,Method spade.Unit.Unit.AddOwnerBehaviour.__init__()=spade.Unit.Unit.AddOwnerBehaviour-class.html#__init__,Method spade.Unit.Unit.CreateRoomBehaviour.__init__()=spade.Unit.Unit.CreateRoomBehaviour-class.html#__init__,Method spade.Unit.Unit.DestroyBehaviour.__init__()=spade.Unit.Unit.DestroyBehaviour-class.html#__init__,Method spade.Unit.Unit.GetAdminListBehaviour.__init__()=spade.Unit.Unit.GetAdminListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetBanAgentListBehaviour.__init__()=spade.Unit.Unit.GetBanAgentListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetGoalBehaviour.__init__()=spade.Unit.Unit.GetGoalBehaviour-class.html#__init__,Method spade.Unit.Unit.GetInfoBehaviour.__init__()=spade.Unit.Unit.GetInfoBehaviour-class.html#__init__,Method spade.Unit.Unit.GetMaxAgentsBehaviour.__init__()=spade.Unit.Unit.GetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.GetMemberListBehaviour.__init__()=spade.Unit.Unit.GetMemberListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetMinAgentsBehaviour.__init__()=spade.Unit.Unit.GetMinAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.GetModeratorListBehaviour.__init__()=spade.Unit.Unit.GetModeratorListBehaviour-class.html#__init__,Method spade.Unit.Unit.GetNumberOfAgentsBehaviour.__init__()=spade.Unit.Unit.GetNumberOfAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.GetOwnerListBehaviour.__init__()=spade.Unit.Unit.GetOwnerListBehaviour-class.html#__init__,Method spade.Unit.Unit.GiveVoiceBehaviour.__init__()=spade.Unit.Unit.GiveVoiceBehaviour-class.html#__init__,Method spade.Unit.Unit.KickAgentBehaviour.__init__()=spade.Unit.Unit.KickAgentBehaviour-class.html#__init__,Method spade.Unit.Unit.MyJoinRoomBehaviour.__init__()=spade.Unit.Unit.MyJoinRoomBehaviour-class.html#__init__,Method spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour.__init__()=spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.PresenceBehaviour.__init__()=spade.Unit.Unit.PresenceBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveAdminBehaviour.__init__()=spade.Unit.Unit.RemoveAdminBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveBanAgentBehaviour.__init__()=spade.Unit.Unit.RemoveBanAgentBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveModeratorBehaviour.__init__()=spade.Unit.Unit.RemoveModeratorBehaviour-class.html#__init__,Method spade.Unit.Unit.RemoveOwnerBehaviour.__init__()=spade.Unit.Unit.RemoveOwnerBehaviour-class.html#__init__,Method spade.Unit.Unit.RevokeVoiceBehaviour.__init__()=spade.Unit.Unit.RevokeVoiceBehaviour-class.html#__init__,Method spade.Unit.Unit.SendMessageBehaviour.__init__()=spade.Unit.Unit.SendMessageBehaviour-class.html#__init__,Method spade.Unit.Unit.SendPrivateMessageBehaviour.__init__()=spade.Unit.Unit.SendPrivateMessageBehaviour-class.html#__init__,Method spade.Unit.Unit.SetGoalBehaviour.__init__()=spade.Unit.Unit.SetGoalBehaviour-class.html#__init__,Method spade.Unit.Unit.SetMaxAgentsBehaviour.__init__()=spade.Unit.Unit.SetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.SetMinAgentsBehaviour.__init__()=spade.Unit.Unit.SetMinAgentsBehaviour-class.html#__init__,Method spade.Unit.Unit.TestRoomNameBehaviour.__init__()=spade.Unit.Unit.TestRoomNameBehaviour-class.html#__init__,Method spade.Unit.Unit.__init__()=spade.Unit.Unit-class.html#__init__,Method spade.Unit_new.BanedUser.__init__()=spade.Unit_new.BanedUser-class.html#__init__,Method spade.Unit_new.CreationError.__init__()=spade.Unit_new.CreationError-class.html#__init__,Method spade.Unit_new.DestroyError.__init__()=spade.Unit_new.DestroyError-class.html#__init__,Method spade.Unit_new.JoinError.__init__()=spade.Unit_new.JoinError-class.html#__init__,Method spade.Unit_new.LastOwner.__init__()=spade.Unit_new.LastOwner-class.html#__init__,Method spade.Unit_new.LockedUnit.__init__()=spade.Unit_new.LockedUnit-class.html#__init__,Method spade.Unit_new.MaximumUsers.__init__()=spade.Unit_new.MaximumUsers-class.html#__init__,Method spade.Unit_new.MembersOnly.__init__()=spade.Unit_new.MembersOnly-class.html#__init__,Method spade.Unit_new.NickNameConflict.__init__()=spade.Unit_new.NickNameConflict-class.html#__init__,Method spade.Unit_new.NotCreatePermision.__init__()=spade.Unit_new.NotCreatePermision-class.html#__init__,Method spade.Unit_new.NotSupervisor.__init__()=spade.Unit_new.NotSupervisor-class.html#__init__,Method spade.Unit_new.NotValidGoal.__init__()=spade.Unit_new.NotValidGoal-class.html#__init__,Method spade.Unit_new.NotValidGoalChange.__init__()=spade.Unit_new.NotValidGoalChange-class.html#__init__,Method spade.Unit_new.NotValidName.__init__()=spade.Unit_new.NotValidName-class.html#__init__,Method spade.Unit_new.NotValidType.__init__()=spade.Unit_new.NotValidType-class.html#__init__,Method spade.Unit_new.NotValidUnit.__init__()=spade.Unit_new.NotValidUnit-class.html#__init__,Method spade.Unit_new.PaswordNeeded.__init__()=spade.Unit_new.PaswordNeeded-class.html#__init__,Method spade.Unit_new.Unavailable.__init__()=spade.Unit_new.Unavailable-class.html#__init__,Method spade.Unit_new.Unit_new.AddAdminBehaviour.__init__()=spade.Unit_new.Unit_new.AddAdminBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.AddBanAgentBehaviour.__init__()=spade.Unit_new.Unit_new.AddBanAgentBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.AddModeratorBehaviour.__init__()=spade.Unit_new.Unit_new.AddModeratorBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.CreateRoomBehaviour.__init__()=spade.Unit_new.Unit_new.CreateRoomBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.DestroyBehaviour.__init__()=spade.Unit_new.Unit_new.DestroyBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetAdminListBehaviour.__init__()=spade.Unit_new.Unit_new.GetAdminListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetBanAgentListBehaviour.__init__()=spade.Unit_new.Unit_new.GetBanAgentListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetGoalBehaviour.__init__()=spade.Unit_new.Unit_new.GetGoalBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetInfoBehaviour.__init__()=spade.Unit_new.Unit_new.GetInfoBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetMaxAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.GetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetMemberListBehaviour.__init__()=spade.Unit_new.Unit_new.GetMemberListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetMinAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.GetMinAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetModeratorListBehaviour.__init__()=spade.Unit_new.Unit_new.GetModeratorListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GetOwnerListBehaviour.__init__()=spade.Unit_new.Unit_new.GetOwnerListBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.GiveVoiceBehaviour.__init__()=spade.Unit_new.Unit_new.GiveVoiceBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.KickAgentBehaviour.__init__()=spade.Unit_new.Unit_new.KickAgentBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.MyJoinRoomBehaviour.__init__()=spade.Unit_new.Unit_new.MyJoinRoomBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.PresenceBehaviour.__init__()=spade.Unit_new.Unit_new.PresenceBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RemoveAdminBehaviour.__init__()=spade.Unit_new.Unit_new.RemoveAdminBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RemoveBanAgentBehaviour.__init__()=spade.Unit_new.Unit_new.RemoveBanAgentBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RemoveModeratorBehaviour.__init__()=spade.Unit_new.Unit_new.RemoveModeratorBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.RevokeVoiceBehaviour.__init__()=spade.Unit_new.Unit_new.RevokeVoiceBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SendMessageBehaviour.__init__()=spade.Unit_new.Unit_new.SendMessageBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SendPrivateMessageBehaviour.__init__()=spade.Unit_new.Unit_new.SendPrivateMessageBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SetGoalBehaviour.__init__()=spade.Unit_new.Unit_new.SetGoalBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SetMaxAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.SetMaxAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.SetMinAgentsBehaviour.__init__()=spade.Unit_new.Unit_new.SetMinAgentsBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.TestRoomNameBehaviour.__init__()=spade.Unit_new.Unit_new.TestRoomNameBehaviour-class.html#__init__,Method spade.Unit_new.Unit_new.__init__()=spade.Unit_new.Unit_new-class.html#__init__,Method spade.XMLCodec.XMLCodec.__init__()=spade.XMLCodec.XMLCodec-class.html#__init__,Method spade.XSBKB.XSBKB.__init__()=spade.XSBKB.XSBKB-class.html#__init__,Method spade.bdi.BDIBehaviour.__init__()=spade.bdi.BDIBehaviour-class.html#__init__,Method spade.bdi.Goal.__init__()=spade.bdi.Goal-class.html#__init__,Method spade.content.ContentObject.__init__()=spade.content.ContentObject-class.html#__init__,Method spade.dblite.Base.__init__()=spade.dblite.Base-class.html#__init__,Method spade.dblite.Index.__init__()=spade.dblite.Index-class.html#__init__,Method spade.fipa.ModifyAgentBehaviour.__init__()=spade.fipa.ModifyAgentBehaviour-class.html#__init__,Method spade.fipa.SearchAgentBehaviour.__init__()=spade.fipa.SearchAgentBehaviour-class.html#__init__,Method spade.fipa.deregisterServiceBehaviour.__init__()=spade.fipa.deregisterServiceBehaviour-class.html#__init__,Method spade.fipa.getPlatformInfoBehaviour.__init__()=spade.fipa.getPlatformInfoBehaviour-class.html#__init__,Method spade.fipa.modifyServiceBehaviour.__init__()=spade.fipa.modifyServiceBehaviour-class.html#__init__,Method spade.fipa.registerServiceBehaviour.__init__()=spade.fipa.registerServiceBehaviour-class.html#__init__,Method spade.fipa.searchServiceBehaviour.__init__()=spade.fipa.searchServiceBehaviour-class.html#__init__,Method spade.kb.KB.__init__()=spade.kb.KB-class.html#__init__,Method spade.kb.KBConfigurationFailed.__init__()=spade.kb.KBConfigurationFailed-class.html#__init__,Method spade.logic.Expr.__init__()=spade.logic.Expr-class.html#__init__,Method spade.logic.FolKB.__init__()=spade.logic.FolKB-class.html#__init__,Method spade.logic.KB.__init__()=spade.logic.KB-class.html#__init__,Method spade.logic.PropKB.__init__()=spade.logic.PropKB-class.html#__init__,Method spade.odict.odict.__init__()=spade.odict.odict-class.html#__init__,Method spade.peer2peer.RequestDiscoInfoBehav.__init__()=spade.peer2peer.RequestDiscoInfoBehav-class.html#__init__,Method spade.peer2peer.SendStreamInitiationBehav.__init__()=spade.peer2peer.SendStreamInitiationBehav-class.html#__init__,Method spade.pubsub.PubSub.__init__()=spade.pubsub.PubSub-class.html#__init__,Method spade.pubsub.PubSub._sendAndReceiveBehav.__init__()=spade.pubsub.PubSub._sendAndReceiveBehav-class.html#__init__,Method spade.pygooglechart.Axis.__init__()=spade.pygooglechart.Axis-class.html#__init__,Method spade.pygooglechart.BarChart.__init__()=spade.pygooglechart.BarChart-class.html#__init__,Method spade.pygooglechart.Chart.__init__()=spade.pygooglechart.Chart-class.html#__init__,Method spade.pygooglechart.ChartGrammar.__init__()=spade.pygooglechart.ChartGrammar-class.html#__init__,Method spade.pygooglechart.Data.__init__()=spade.pygooglechart.Data-class.html#__init__,Method spade.pygooglechart.GoogleOMeterChart.__init__()=spade.pygooglechart.GoogleOMeterChart-class.html#__init__,Method spade.pygooglechart.GroupedBarChart.__init__()=spade.pygooglechart.GroupedBarChart-class.html#__init__,Method spade.pygooglechart.LabelAxis.__init__()=spade.pygooglechart.LabelAxis-class.html#__init__,Method spade.pygooglechart.LineChart.__init__()=spade.pygooglechart.LineChart-class.html#__init__,Method spade.pygooglechart.MapChart.__init__()=spade.pygooglechart.MapChart-class.html#__init__,Method spade.pygooglechart.PieChart.__init__()=spade.pygooglechart.PieChart-class.html#__init__,Method spade.pygooglechart.QRChart.__init__()=spade.pygooglechart.QRChart-class.html#__init__,Method spade.pygooglechart.RangeAxis.__init__()=spade.pygooglechart.RangeAxis-class.html#__init__,Method spade.pyparsing.And.__init__()=spade.pyparsing.And-class.html#__init__,Method spade.pyparsing.CaselessLiteral.__init__()=spade.pyparsing.CaselessLiteral-class.html#__init__,Method spade.pyparsing.CharsNotIn.__init__()=spade.pyparsing.CharsNotIn-class.html#__init__,Method spade.pyparsing.Combine.__init__()=spade.pyparsing.Combine-class.html#__init__,Method spade.pyparsing.Dict.__init__()=spade.pyparsing.Dict-class.html#__init__,Method spade.pyparsing.Each.__init__()=spade.pyparsing.Each-class.html#__init__,Method spade.pyparsing.Empty.__init__()=spade.pyparsing.Empty-class.html#__init__,Method spade.pyparsing.FollowedBy.__init__()=spade.pyparsing.FollowedBy-class.html#__init__,Method spade.pyparsing.Forward.__init__()=spade.pyparsing.Forward-class.html#__init__,Method spade.pyparsing.GoToColumn.__init__()=spade.pyparsing.GoToColumn-class.html#__init__,Method spade.pyparsing.Group.__init__()=spade.pyparsing.Group-class.html#__init__,Method spade.pyparsing.Keyword.__init__()=spade.pyparsing.Keyword-class.html#__init__,Method spade.pyparsing.LineEnd.__init__()=spade.pyparsing.LineEnd-class.html#__init__,Method spade.pyparsing.LineStart.__init__()=spade.pyparsing.LineStart-class.html#__init__,Method spade.pyparsing.Literal.__init__()=spade.pyparsing.Literal-class.html#__init__,Method spade.pyparsing.MatchFirst.__init__()=spade.pyparsing.MatchFirst-class.html#__init__,Method spade.pyparsing.NoMatch.__init__()=spade.pyparsing.NoMatch-class.html#__init__,Method spade.pyparsing.NotAny.__init__()=spade.pyparsing.NotAny-class.html#__init__,Method spade.pyparsing.Optional.__init__()=spade.pyparsing.Optional-class.html#__init__,Method spade.pyparsing.Or.__init__()=spade.pyparsing.Or-class.html#__init__,Method spade.pyparsing.ParseBaseException.__init__()=spade.pyparsing.ParseBaseException-class.html#__init__,Method spade.pyparsing.ParseElementEnhance.__init__()=spade.pyparsing.ParseElementEnhance-class.html#__init__,Method spade.pyparsing.ParseExpression.__init__()=spade.pyparsing.ParseExpression-class.html#__init__,Method spade.pyparsing.ParseResults.__init__()=spade.pyparsing.ParseResults-class.html#__init__,Method spade.pyparsing.ParserElement.__init__()=spade.pyparsing.ParserElement-class.html#__init__,Method spade.pyparsing.PositionToken.__init__()=spade.pyparsing.PositionToken-class.html#__init__,Method spade.pyparsing.RecursiveGrammarException.__init__()=spade.pyparsing.RecursiveGrammarException-class.html#__init__,Method spade.pyparsing.SkipTo.__init__()=spade.pyparsing.SkipTo-class.html#__init__,Method spade.pyparsing.StringEnd.__init__()=spade.pyparsing.StringEnd-class.html#__init__,Method spade.pyparsing.StringStart.__init__()=spade.pyparsing.StringStart-class.html#__init__,Method spade.pyparsing.Token.__init__()=spade.pyparsing.Token-class.html#__init__,Method spade.pyparsing.TokenConverter.__init__()=spade.pyparsing.TokenConverter-class.html#__init__,Method spade.pyparsing.Upcase.__init__()=spade.pyparsing.Upcase-class.html#__init__,Method spade.pyparsing.White.__init__()=spade.pyparsing.White-class.html#__init__,Method spade.pyparsing.Word.__init__()=spade.pyparsing.Word-class.html#__init__,Method spade.pyparsing.ZeroOrMore.__init__()=spade.pyparsing.ZeroOrMore-class.html#__init__,Method spade.pyratemp.FileLoader.__init__()=spade.pyratemp.FileLoader-class.html#__init__,Method spade.pyratemp.Parser.__init__()=spade.pyratemp.Parser-class.html#__init__,Method spade.pyratemp.PseudoSandbox.__init__()=spade.pyratemp.PseudoSandbox-class.html#__init__,Method spade.pyratemp.Renderer.__init__()=spade.pyratemp.Renderer-class.html#__init__,Method spade.pyratemp.StringLoader.__init__()=spade.pyratemp.StringLoader-class.html#__init__,Method spade.pyratemp.Template.__init__()=spade.pyratemp.Template-class.html#__init__,Method spade.pyratemp.TemplateBase.__init__()=spade.pyratemp.TemplateBase-class.html#__init__,Method spade.pyratemp.TemplateEval.__init__()=spade.pyratemp.TemplateEval-class.html#__init__,Method spade.pyratemp.TemplateParseError.__init__()=spade.pyratemp.TemplateParseError-class.html#__init__,Method spade.pyxf.eclipse.__init__()=spade.pyxf.eclipse-class.html#__init__,Method spade.pyxf.flora2.__init__()=spade.pyxf.flora2-class.html#__init__,Method spade.pyxf.swipl.__init__()=spade.pyxf.swipl-class.html#__init__,Method spade.pyxf.xsb.__init__()=spade.pyxf.xsb-class.html#__init__,Method spade.socialnetwork.SocialItem.__init__()=spade.socialnetwork.SocialItem-class.html#__init__,Method spade.spade_backend.SpadeBackend.__init__()=spade.spade_backend.SpadeBackend-class.html#__init__,Method spade.tbcbp.Case.__init__()=spade.tbcbp.Case-class.html#__init__,Method spade.tbcbp.CaseDB.__init__()=spade.tbcbp.CaseDB-class.html#__init__,Method spade.tbcbp.Plan.__init__()=spade.tbcbp.Plan-class.html#__init__,Method spade.tbcbp.TBCBP.__init__()=spade.tbcbp.TBCBP-class.html#__init__,Method spade.wui.WUI.__init__()=spade.wui.WUI-class.html#__init__,Method spade.xmpp.auth.Bind.__init__()=spade.xmpp.auth.Bind-class.html#__init__,Method spade.xmpp.auth.ComponentBind.__init__()=spade.xmpp.auth.ComponentBind-class.html#__init__,Method spade.xmpp.auth.NonSASL.__init__()=spade.xmpp.auth.NonSASL-class.html#__init__,Method spade.xmpp.auth.SASL.__init__()=spade.xmpp.auth.SASL-class.html#__init__,Method spade.xmpp.browser.Browser.__init__()=spade.xmpp.browser.Browser-class.html#__init__,Method spade.xmpp.client.CommonClient.__init__()=spade.xmpp.client.CommonClient-class.html#__init__,Method spade.xmpp.client.Component.__init__()=spade.xmpp.client.Component-class.html#__init__,Method spade.xmpp.client.PlugIn.__init__()=spade.xmpp.client.PlugIn-class.html#__init__,Method spade.xmpp.commands.Command_Handler_Prototype.__init__()=spade.xmpp.commands.Command_Handler_Prototype-class.html#__init__,Method spade.xmpp.commands.Commands.__init__()=spade.xmpp.commands.Commands-class.html#__init__,Method spade.xmpp.commands.TestCommand.__init__()=spade.xmpp.commands.TestCommand-class.html#__init__,Method spade.xmpp.debug.Debug.__init__()=spade.xmpp.debug.Debug-class.html#__init__,Method spade.xmpp.debug.NoDebug.__init__()=spade.xmpp.debug.NoDebug-class.html#__init__,Method spade.xmpp.dispatcher.Dispatcher.__init__()=spade.xmpp.dispatcher.Dispatcher-class.html#__init__,Method spade.xmpp.filetransfer.IBB.__init__()=spade.xmpp.filetransfer.IBB-class.html#__init__,Method spade.xmpp.protocol.DataField.__init__()=spade.xmpp.protocol.DataField-class.html#__init__,Method spade.xmpp.protocol.DataForm.__init__()=spade.xmpp.protocol.DataForm-class.html#__init__,Method spade.xmpp.protocol.Error.__init__()=spade.xmpp.protocol.Error-class.html#__init__,Method spade.xmpp.protocol.ErrorNode.__init__()=spade.xmpp.protocol.ErrorNode-class.html#__init__,Method spade.xmpp.protocol.Iq.__init__()=spade.xmpp.protocol.Iq-class.html#__init__,Method spade.xmpp.protocol.JID.__init__()=spade.xmpp.protocol.JID-class.html#__init__,Method spade.xmpp.protocol.Message.__init__()=spade.xmpp.protocol.Message-class.html#__init__,Method spade.xmpp.protocol.Presence.__init__()=spade.xmpp.protocol.Presence-class.html#__init__,Method spade.xmpp.protocol.Protocol.__init__()=spade.xmpp.protocol.Protocol-class.html#__init__,Method spade.xmpp.roster.Roster.__init__()=spade.xmpp.roster.Roster-class.html#__init__,Method spade.xmpp.session.Session.__init__()=spade.xmpp.session.Session-class.html#__init__,Method spade.xmpp.simplexml.Node.__init__()=spade.xmpp.simplexml.Node-class.html#__init__,Method spade.xmpp.simplexml.NodeBuilder.__init__()=spade.xmpp.simplexml.NodeBuilder-class.html#__init__,Method spade.xmpp.simplexml.T.__init__()=spade.xmpp.simplexml.T-class.html#__init__,Method spade.xmpp.transports.HTTPPROXYsocket.__init__()=spade.xmpp.transports.HTTPPROXYsocket-class.html#__init__,Method spade.xmpp.transports.TCPsocket.__init__()=spade.xmpp.transports.TCPsocket-class.html#__init__,Method spade.xmpp.transports.error.__init__()=spade.xmpp.transports.error-class.html#__init__,Method spade.xmppd.modules.config.Config.__init__()=spade.xmppd.modules.config.Config-class.html#__init__,Method spade.xmppd.modules.config.xmppdXML.__init__()=spade.xmppd.modules.config.xmppdXML-class.html#__init__,Method spade.xmppd.modules.config.xmppdXMLHandler.__init__()=spade.xmppd.modules.config.xmppdXMLHandler-class.html#__init__,Method spade.xmppd.modules.muc.BadPassword.__init__()=spade.xmppd.modules.muc.BadPassword-class.html#__init__,Method spade.xmppd.modules.muc.Blacklisted.__init__()=spade.xmppd.modules.muc.Blacklisted-class.html#__init__,Method spade.xmppd.modules.muc.MaxUsers.__init__()=spade.xmppd.modules.muc.MaxUsers-class.html#__init__,Method spade.xmppd.modules.muc.NickLockedDown.__init__()=spade.xmppd.modules.muc.NickLockedDown-class.html#__init__,Method spade.xmppd.modules.muc.NoVoice.__init__()=spade.xmppd.modules.muc.NoVoice-class.html#__init__,Method spade.xmppd.modules.muc.NotAMember.__init__()=spade.xmppd.modules.muc.NotAMember-class.html#__init__,Method spade.xmppd.modules.muc.Participant.__init__()=spade.xmppd.modules.muc.Participant-class.html#__init__,Method spade.xmppd.modules.muc.Room.__init__()=spade.xmppd.modules.muc.Room-class.html#__init__,Method spade.xmppd.modules.muc.SerializableRoom.__init__()=spade.xmppd.modules.muc.SerializableRoom-class.html#__init__,Method spade.xmppd.modules.pubsub.PSNode.__init__()=spade.xmppd.modules.pubsub.PSNode-class.html#__init__,Method spade.xmppd.modules.wq.Conflict.__init__()=spade.xmppd.modules.wq.Conflict-class.html#__init__,Method spade.xmppd.modules.wq.Group.__init__()=spade.xmppd.modules.wq.Group-class.html#__init__,Method spade.xmppd.modules.wq.ItemNotFound.__init__()=spade.xmppd.modules.wq.ItemNotFound-class.html#__init__,Method spade.xmppd.xmppd.RPC_Client.__init__()=spade.xmppd.xmppd.RPC_Client-class.html#__init__,Method spade.xmppd.xmppd.Server.__init__()=spade.xmppd.xmppd.Server-class.html#__init__,Method spade.xmppd.xmppd.Session.__init__()=spade.xmppd.xmppd.Session-class.html#__init__,Method spade.xmppd.xmppd.Session_Dummy.Stream.__init__()=spade.xmppd.xmppd.Session_Dummy.Stream-class.html#__init__,Method spade.xmppd.xmppd.Session_Dummy.__init__()=spade.xmppd.xmppd.Session_Dummy-class.html#__init__,Method spade.xmppd.xmppd.Socker_client.__init__()=spade.xmppd.xmppd.Socker_client-class.html#__init__,Method spade.xmppd.xmppd.fake_select.__init__()=spade.xmppd.xmppd.fake_select-class.html#__init__,Method spade.xmppd.xmppd.fake_select.poll.__init__()=spade.xmppd.xmppd.fake_select.poll-class.html#__init__,Method spade.xmppd.xmppd.get_input.__init__()=spade.xmppd.xmppd.get_input-class.html#__init__,Method spade.xmppd.xmppd.localizer.__init__()=spade.xmppd.xmppd.localizer-class.html#__init__,Method spade.xmppd.xmppd.multisession_manager.__init__()=spade.xmppd.xmppd.multisession_manager-class.html#__init__,Method spade.xmppd.xmppd.multisession_manager.multisession_thread.__init__()=spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#__init__"><a title="spade.ACLMessage.ACLMessage.__init__
spade.ACLParser.ACLParser.__init__
spade.ACLParser.ACLxmlParser.__init__
spade.AID.aid.__init__
spade.AMS.AMS.DefaultBehaviour.__init__
spade.AMS.AMS.ModifyBehaviour.__init__
spade.AMS.AMS.PlatformBehaviour.__init__
spade.AMS.AMS.RegisterBehaviour.__init__
spade.AMS.AMS.SearchBehaviour.__init__
spade.AMS.AMS.__init__
spade.AMS.AmsAgentDescription.__init__
spade.Agent.AbstractAgent.__init__
spade.Agent.Agent.__init__
spade.Agent.PlatformAgent.__init__
spade.Agent.jabberProcess.__init__
spade.BasicFipaDateTime.BasicFipaDateTime.__init__
spade.Behaviour.ACLTemplate.__init__
spade.Behaviour.ANDTemplate.__init__
spade.Behaviour.Behaviour.__init__
spade.Behaviour.BehaviourTemplate.__init__
spade.Behaviour.EventBehaviour.__init__
spade.Behaviour.FSMBehaviour.__init__
spade.Behaviour.MessageTemplate.__init__
spade.Behaviour.NOTTemplate.__init__
spade.Behaviour.ORTemplate.__init__
spade.Behaviour.OneShotBehaviour.__init__
spade.Behaviour.PeriodicBehaviour.__init__
spade.Behaviour.TimeOutBehaviour.__init__
spade.Behaviour.XORTemplate.__init__
spade.DF.DF.DefaultBehaviour.__init__
spade.DF.DF.ModifyBehaviour.__init__
spade.DF.DF.RegisterBehaviour.__init__
spade.DF.DF.SearchBehaviour.__init__
spade.DF.DF.__init__
spade.DF.DfAgentDescription.__init__
spade.DF.Service.__init__
spade.DF.ServiceDescription.__init__
spade.ECLiPSeKB.ECLiPSeKB.__init__
spade.Envelope.Envelope.__init__
spade.FIPAMessage.FipaMessage.__init__
spade.Flora2KB.Flora2KB.__init__
spade.MTP.MTP.__init__
spade.MessageReceiver.MessageReceiver.__init__
spade.Organization.BanedUser.__init__
spade.Organization.CreationError.__init__
spade.Organization.DestroyError.__init__
spade.Organization.JoinError.__init__
spade.Organization.LastOwner.__init__
spade.Organization.LockedOrganization.__init__
spade.Organization.MaximumUsers.__init__
spade.Organization.MemberOfFederation.__init__
spade.Organization.MembersOnly.__init__
spade.Organization.NickNameConflict.__init__
spade.Organization.NotOwner.__init__
spade.Organization.NotSupervisor.__init__
spade.Organization.NotValidGoal.__init__
spade.Organization.NotValidName.__init__
spade.Organization.NotValidType.__init__
spade.Organization.NotValidUnit.__init__
spade.Organization.Organization.CreateRoomBehaviour.__init__
spade.Organization.Organization.CreateTeamBehaviour.__init__
spade.Organization.Organization.DestroyBehaviour.__init__
spade.Organization.Organization.GetRegistrationFormBehaviour.__init__
spade.Organization.Organization.GetUnitInfoBehaviour.__init__
spade.Organization.Organization.GetUnitListBehaviour.__init__
spade.Organization.Organization.IsMemberBehaviour.__init__
spade.Organization.Organization.MyJoinRoomBehaviour.__init__
spade.Organization.Organization.SendRegistrationFormBehaviour.__init__
spade.Organization.Organization.TestRoomNameBehaviour.__init__
spade.Organization.Organization.__init__
spade.Organization.PaswordNeeded.__init__
spade.Organization.Unavailable.__init__
spade.Organization.UnavailableFunction.__init__
spade.Organization_new.BanedUser.__init__
spade.Organization_new.CreationError.__init__
spade.Organization_new.DestroyError.__init__
spade.Organization_new.JoinError.__init__
spade.Organization_new.LastOwner.__init__
spade.Organization_new.LockedOrganization.__init__
spade.Organization_new.MaximumUsers.__init__
spade.Organization_new.MemberOfFederation.__init__
spade.Organization_new.MembersOnly.__init__
spade.Organization_new.NickNameConflict.__init__
spade.Organization_new.NotCreatePermision.__init__
spade.Organization_new.NotSupervisor.__init__
spade.Organization_new.NotValidGoal.__init__
spade.Organization_new.NotValidName.__init__
spade.Organization_new.NotValidType.__init__
spade.Organization_new.NotValidUnit.__init__
spade.Organization_new.Organization_new.CreateRoomBehaviour.__init__
spade.Organization_new.Organization_new.CreateTeamBehaviour.__init__
spade.Organization_new.Organization_new.DestroyBehaviour.__init__
spade.Organization_new.Organization_new.GetRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitInfoBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitListBehaviour.__init__
spade.Organization_new.Organization_new.IsMemberBehaviour.__init__
spade.Organization_new.Organization_new.MyJoinRoomBehaviour.__init__
spade.Organization_new.Organization_new.SendRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.TestRoomNameBehaviour.__init__
spade.Organization_new.Organization_new.__init__
spade.Organization_new.PaswordNeeded.__init__
spade.Organization_new.Unavailable.__init__
spade.Organization_new.UnavailableFunction.__init__
spade.Platform.PlatformRestart.__init__
spade.Platform.SpadePlatform.RouteBehaviour.__init__
spade.Platform.SpadePlatform.__init__
spade.RDF0Parser.RDF0Parser.__init__
spade.RPC.RPCClientBehaviour.__init__
spade.ReceivedObject.ReceivedObject.__init__
spade.SIMBA.SIMBA.OutboxBehaviour.__init__
spade.SIMBA.SIMBA.__init__
spade.SL0Parser.SL0Parser.__init__
spade.SPARQLKB.SPARQLKB.__init__
spade.SWIKB.SWIKB.__init__
spade.SpadeConfigParser.ConfigParser.__init__
spade.SpadeConfigParser.spadeXML.__init__
spade.SpadeConfigParser.spadeXMLHandler.__init__
spade.Unit.BanedUser.__init__
spade.Unit.CreationError.__init__
spade.Unit.DestroyError.__init__
spade.Unit.JoinError.__init__
spade.Unit.LastOwner.__init__
spade.Unit.LockedUnit.__init__
spade.Unit.MaximumUsers.__init__
spade.Unit.MembersOnly.__init__
spade.Unit.NickNameConflict.__init__
spade.Unit.NotAdmin.__init__
spade.Unit.NotSupervisor.__init__
spade.Unit.NotValidGoal.__init__
spade.Unit.NotValidGoalChange.__init__
spade.Unit.NotValidName.__init__
spade.Unit.NotValidType.__init__
spade.Unit.NotValidUnit.__init__
spade.Unit.PaswordNeeded.__init__
spade.Unit.Unavailable.__init__
spade.Unit.Unit.AddAdminBehaviour.__init__
spade.Unit.Unit.AddBanAgentBehaviour.__init__
spade.Unit.Unit.AddModeratorBehaviour.__init__
spade.Unit.Unit.AddOwnerBehaviour.__init__
spade.Unit.Unit.CreateRoomBehaviour.__init__
spade.Unit.Unit.DestroyBehaviour.__init__
spade.Unit.Unit.GetAdminListBehaviour.__init__
spade.Unit.Unit.GetBanAgentListBehaviour.__init__
spade.Unit.Unit.GetGoalBehaviour.__init__
spade.Unit.Unit.GetInfoBehaviour.__init__
spade.Unit.Unit.GetMaxAgentsBehaviour.__init__
spade.Unit.Unit.GetMemberListBehaviour.__init__
spade.Unit.Unit.GetMinAgentsBehaviour.__init__
spade.Unit.Unit.GetModeratorListBehaviour.__init__
spade.Unit.Unit.GetNumberOfAgentsBehaviour.__init__
spade.Unit.Unit.GetOwnerListBehaviour.__init__
spade.Unit.Unit.GiveVoiceBehaviour.__init__
spade.Unit.Unit.KickAgentBehaviour.__init__
spade.Unit.Unit.MyJoinRoomBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.__init__
spade.Unit.Unit.RemoveAdminBehaviour.__init__
spade.Unit.Unit.RemoveBanAgentBehaviour.__init__
spade.Unit.Unit.RemoveModeratorBehaviour.__init__
spade.Unit.Unit.RemoveOwnerBehaviour.__init__
spade.Unit.Unit.RevokeVoiceBehaviour.__init__
spade.Unit.Unit.SendMessageBehaviour.__init__
spade.Unit.Unit.SendPrivateMessageBehaviour.__init__
spade.Unit.Unit.SetGoalBehaviour.__init__
spade.Unit.Unit.SetMaxAgentsBehaviour.__init__
spade.Unit.Unit.SetMinAgentsBehaviour.__init__
spade.Unit.Unit.TestRoomNameBehaviour.__init__
spade.Unit.Unit.__init__
spade.Unit_new.BanedUser.__init__
spade.Unit_new.CreationError.__init__
spade.Unit_new.DestroyError.__init__
spade.Unit_new.JoinError.__init__
spade.Unit_new.LastOwner.__init__
spade.Unit_new.LockedUnit.__init__
spade.Unit_new.MaximumUsers.__init__
spade.Unit_new.MembersOnly.__init__
spade.Unit_new.NickNameConflict.__init__
spade.Unit_new.NotCreatePermision.__init__
spade.Unit_new.NotSupervisor.__init__
spade.Unit_new.NotValidGoal.__init__
spade.Unit_new.NotValidGoalChange.__init__
spade.Unit_new.NotValidName.__init__
spade.Unit_new.NotValidType.__init__
spade.Unit_new.NotValidUnit.__init__
spade.Unit_new.PaswordNeeded.__init__
spade.Unit_new.Unavailable.__init__
spade.Unit_new.Unit_new.AddAdminBehaviour.__init__
spade.Unit_new.Unit_new.AddBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.AddModeratorBehaviour.__init__
spade.Unit_new.Unit_new.CreateRoomBehaviour.__init__
spade.Unit_new.Unit_new.DestroyBehaviour.__init__
spade.Unit_new.Unit_new.GetAdminListBehaviour.__init__
spade.Unit_new.Unit_new.GetBanAgentListBehaviour.__init__
spade.Unit_new.Unit_new.GetGoalBehaviour.__init__
spade.Unit_new.Unit_new.GetInfoBehaviour.__init__
spade.Unit_new.Unit_new.GetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetMemberListBehaviour.__init__
spade.Unit_new.Unit_new.GetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetModeratorListBehaviour.__init__
spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetOwnerListBehaviour.__init__
spade.Unit_new.Unit_new.GiveVoiceBehaviour.__init__
spade.Unit_new.Unit_new.KickAgentBehaviour.__init__
spade.Unit_new.Unit_new.MyJoinRoomBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.__init__
spade.Unit_new.Unit_new.RemoveAdminBehaviour.__init__
spade.Unit_new.Unit_new.RemoveBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.RemoveModeratorBehaviour.__init__
spade.Unit_new.Unit_new.RevokeVoiceBehaviour.__init__
spade.Unit_new.Unit_new.SendMessageBehaviour.__init__
spade.Unit_new.Unit_new.SendPrivateMessageBehaviour.__init__
spade.Unit_new.Unit_new.SetGoalBehaviour.__init__
spade.Unit_new.Unit_new.SetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.SetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.TestRoomNameBehaviour.__init__
spade.Unit_new.Unit_new.__init__
spade.XMLCodec.XMLCodec.__init__
spade.XSBKB.XSBKB.__init__
spade.bdi.BDIBehaviour.__init__
spade.bdi.Goal.__init__
spade.content.ContentObject.__init__
spade.dblite.Base.__init__
spade.dblite.Index.__init__
spade.fipa.ModifyAgentBehaviour.__init__
spade.fipa.SearchAgentBehaviour.__init__
spade.fipa.deregisterServiceBehaviour.__init__
spade.fipa.getPlatformInfoBehaviour.__init__
spade.fipa.modifyServiceBehaviour.__init__
spade.fipa.registerServiceBehaviour.__init__
spade.fipa.searchServiceBehaviour.__init__
spade.kb.KB.__init__
spade.kb.KBConfigurationFailed.__init__
spade.logic.Expr.__init__
spade.logic.FolKB.__init__
spade.logic.KB.__init__
spade.logic.PropKB.__init__
spade.odict.odict.__init__
spade.peer2peer.RequestDiscoInfoBehav.__init__
spade.peer2peer.SendStreamInitiationBehav.__init__
spade.pubsub.PubSub.__init__
spade.pubsub.PubSub._sendAndReceiveBehav.__init__
spade.pygooglechart.Axis.__init__
spade.pygooglechart.BarChart.__init__
spade.pygooglechart.Chart.__init__
spade.pygooglechart.ChartGrammar.__init__
spade.pygooglechart.Data.__init__
spade.pygooglechart.GoogleOMeterChart.__init__
spade.pygooglechart.GroupedBarChart.__init__
spade.pygooglechart.LabelAxis.__init__
spade.pygooglechart.LineChart.__init__
spade.pygooglechart.MapChart.__init__
spade.pygooglechart.PieChart.__init__
spade.pygooglechart.QRChart.__init__
spade.pygooglechart.RangeAxis.__init__
spade.pyparsing.And.__init__
spade.pyparsing.CaselessLiteral.__init__
spade.pyparsing.CharsNotIn.__init__
spade.pyparsing.Combine.__init__
spade.pyparsing.Dict.__init__
spade.pyparsing.Each.__init__
spade.pyparsing.Empty.__init__
spade.pyparsing.FollowedBy.__init__
spade.pyparsing.Forward.__init__
spade.pyparsing.GoToColumn.__init__
spade.pyparsing.Group.__init__
spade.pyparsing.Keyword.__init__
spade.pyparsing.LineEnd.__init__
spade.pyparsing.LineStart.__init__
spade.pyparsing.Literal.__init__
spade.pyparsing.MatchFirst.__init__
spade.pyparsing.NoMatch.__init__
spade.pyparsing.NotAny.__init__
spade.pyparsing.Optional.__init__
spade.pyparsing.Or.__init__
spade.pyparsing.ParseBaseException.__init__
spade.pyparsing.ParseElementEnhance.__init__
spade.pyparsing.ParseExpression.__init__
spade.pyparsing.ParseResults.__init__
spade.pyparsing.ParserElement.__init__
spade.pyparsing.PositionToken.__init__
spade.pyparsing.RecursiveGrammarException.__init__
spade.pyparsing.SkipTo.__init__
spade.pyparsing.StringEnd.__init__
spade.pyparsing.StringStart.__init__
spade.pyparsing.Token.__init__
spade.pyparsing.TokenConverter.__init__
spade.pyparsing.Upcase.__init__
spade.pyparsing.White.__init__
spade.pyparsing.Word.__init__
spade.pyparsing.ZeroOrMore.__init__
spade.pyratemp.FileLoader.__init__
spade.pyratemp.Parser.__init__
spade.pyratemp.PseudoSandbox.__init__
spade.pyratemp.Renderer.__init__
spade.pyratemp.StringLoader.__init__
spade.pyratemp.Template.__init__
spade.pyratemp.TemplateBase.__init__
spade.pyratemp.TemplateEval.__init__
spade.pyratemp.TemplateParseError.__init__
spade.pyxf.eclipse.__init__
spade.pyxf.flora2.__init__
spade.pyxf.swipl.__init__
spade.pyxf.xsb.__init__
spade.socialnetwork.SocialItem.__init__
spade.spade_backend.SpadeBackend.__init__
spade.tbcbp.Case.__init__
spade.tbcbp.CaseDB.__init__
spade.tbcbp.Plan.__init__
spade.tbcbp.TBCBP.__init__
spade.wui.WUI.__init__
spade.xmpp.auth.Bind.__init__
spade.xmpp.auth.ComponentBind.__init__
spade.xmpp.auth.NonSASL.__init__
spade.xmpp.auth.SASL.__init__
spade.xmpp.browser.Browser.__init__
spade.xmpp.client.CommonClient.__init__
spade.xmpp.client.Component.__init__
spade.xmpp.client.PlugIn.__init__
spade.xmpp.commands.Command_Handler_Prototype.__init__
spade.xmpp.commands.Commands.__init__
spade.xmpp.commands.TestCommand.__init__
spade.xmpp.debug.Debug.__init__
spade.xmpp.debug.NoDebug.__init__
spade.xmpp.dispatcher.Dispatcher.__init__
spade.xmpp.filetransfer.IBB.__init__
spade.xmpp.protocol.DataField.__init__
spade.xmpp.protocol.DataForm.__init__
spade.xmpp.protocol.Error.__init__
spade.xmpp.protocol.ErrorNode.__init__
spade.xmpp.protocol.Iq.__init__
spade.xmpp.protocol.JID.__init__
spade.xmpp.protocol.Message.__init__
spade.xmpp.protocol.Presence.__init__
spade.xmpp.protocol.Protocol.__init__
spade.xmpp.roster.Roster.__init__
spade.xmpp.session.Session.__init__
spade.xmpp.simplexml.Node.__init__
spade.xmpp.simplexml.NodeBuilder.__init__
spade.xmpp.simplexml.T.__init__
spade.xmpp.transports.HTTPPROXYsocket.__init__
spade.xmpp.transports.TCPsocket.__init__
spade.xmpp.transports.error.__init__
spade.xmppd.modules.config.Config.__init__
spade.xmppd.modules.config.xmppdXML.__init__
spade.xmppd.modules.config.xmppdXMLHandler.__init__
spade.xmppd.modules.muc.BadPassword.__init__
spade.xmppd.modules.muc.Blacklisted.__init__
spade.xmppd.modules.muc.MaxUsers.__init__
spade.xmppd.modules.muc.NickLockedDown.__init__
spade.xmppd.modules.muc.NoVoice.__init__
spade.xmppd.modules.muc.NotAMember.__init__
spade.xmppd.modules.muc.Participant.__init__
spade.xmppd.modules.muc.Room.__init__
spade.xmppd.modules.muc.SerializableRoom.__init__
spade.xmppd.modules.pubsub.PSNode.__init__
spade.xmppd.modules.wq.Conflict.__init__
spade.xmppd.modules.wq.Group.__init__
spade.xmppd.modules.wq.ItemNotFound.__init__
spade.xmppd.xmppd.RPC_Client.__init__
spade.xmppd.xmppd.Server.__init__
spade.xmppd.xmppd.Session.__init__
spade.xmppd.xmppd.Session_Dummy.Stream.__init__
spade.xmppd.xmppd.Session_Dummy.__init__
spade.xmppd.xmppd.Socker_client.__init__
spade.xmppd.xmppd.fake_select.__init__
spade.xmppd.xmppd.fake_select.poll.__init__
spade.xmppd.xmppd.get_input.__init__
spade.xmppd.xmppd.localizer.__init__
spade.xmppd.xmppd.multisession_manager.__init__
spade.xmppd.xmppd.multisession_manager.multisession_thread.__init__" class="py-name" href="#" onclick="return doclink('link-389', '__init__', 'link-389');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L846"></a><tt class="py-lineno"> 846</tt>  <tt class="py-line"> </tt>
<a name="L847"></a><tt class="py-lineno"> 847</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">alive</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt>  <tt class="py-comment"># Boolean attribute indicating wether the thread is alive</tt> </tt>
<a name="L848"></a><tt class="py-lineno"> 848</tt>  <tt class="py-line"> </tt>
<a name="L849"></a><tt class="py-lineno"> 849</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt> <tt class="py-op">=</tt> <tt class="py-name">select</tt><tt class="py-op">.</tt><tt id="link-390" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-390', 'poll', 'link-21');">poll</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L850"></a><tt class="py-lineno"> 850</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L851"></a><tt class="py-lineno"> 851</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">=</tt><tt class="py-name">thread</tt><tt class="py-op">.</tt><tt class="py-name">allocate_lock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L852"></a><tt class="py-lineno"> 852</tt>  <tt class="py-line"> </tt>
<a name="L853"></a><tt class="py-lineno"> 853</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt> <tt class="py-op">=</tt> <tt class="py-name">owner</tt> </tt>
<a name="L854"></a><tt class="py-lineno"> 854</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-391" class="py-name" targets="Method spade.Platform.SpadePlatform.index()=spade.Platform.SpadePlatform-class.html#index,Method spade.odict.odict.index()=spade.odict.odict-class.html#index"><a title="spade.Platform.SpadePlatform.index
spade.odict.odict.index" class="py-name" href="#" onclick="return doclink('link-391', 'index', 'link-391');">index</a></tt> <tt class="py-op">=</tt> <tt id="link-392" class="py-name"><a title="spade.Platform.SpadePlatform.index
spade.odict.odict.index" class="py-name" href="#" onclick="return doclink('link-392', 'index', 'link-391');">index</a></tt> </tt>
</div><a name="L855"></a><tt class="py-lineno"> 855</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.multisession_thread.run"></a><div id="multisession_manager.multisession_thread.run-def"><a name="L856"></a><tt class="py-lineno"> 856</tt> <a class="py-toggle" href="#" id="multisession_manager.multisession_thread.run-toggle" onclick="return toggle('multisession_manager.multisession_thread.run');">-</a><tt class="py-line">                <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#run">run</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.multisession_thread.run-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++++++++++++++"></div><div id="multisession_manager.multisession_thread.run-expanded"><a name="L857"></a><tt class="py-lineno"> 857</tt>  <tt class="py-line">                        <tt class="py-keyword">while</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">isAlive</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">alive</tt><tt class="py-op">:</tt> </tt>
<a name="L858"></a><tt class="py-lineno"> 858</tt>  <tt class="py-line">                                <tt class="py-keyword">for</tt> <tt id="link-393" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-393', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">,</tt><tt class="py-name">ev</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">.</tt><tt id="link-394" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-394', 'poll', 'link-21');">poll</a></tt><tt class="py-op">(</tt><tt class="py-number">1000</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L859"></a><tt class="py-lineno"> 859</tt>  <tt class="py-line">                                        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">sess</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt id="link-395" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-395', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">]</tt> </tt>
<a name="L860"></a><tt class="py-lineno"> 860</tt>  <tt class="py-line">                                        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-name">sess</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L861"></a><tt class="py-lineno"> 861</tt>  <tt class="py-line"> </tt>
<a name="L862"></a><tt class="py-lineno"> 862</tt>  <tt class="py-line">                                        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">sess</tt><tt class="py-op">,</tt><tt id="link-396" class="py-name" targets="Method spade.wui.WUIHandler.Session()=spade.wui.WUIHandler-class.html#Session,Class spade.xmpp.session.Session=spade.xmpp.session.Session-class.html,Class spade.xmppd.modules.stream.Session=spade.xmppd.modules.stream.Session-class.html,Class spade.xmppd.xmppd.Session=spade.xmppd.xmppd.Session-class.html"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-396', 'Session', 'link-396');">Session</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L863"></a><tt class="py-lineno"> 863</tt>  <tt class="py-line">                                            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L864"></a><tt class="py-lineno"> 864</tt>  <tt class="py-line">                                                <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-397" class="py-name" targets="Method spade.xmpp.session.Session.receive()=spade.xmpp.session.Session-class.html#receive,Method spade.xmpp.transports.TCPsocket.receive()=spade.xmpp.transports.TCPsocket-class.html#receive,Method spade.xmppd.xmppd.RPC_Client.receive()=spade.xmppd.xmppd.RPC_Client-class.html#receive,Method spade.xmppd.xmppd.Session.receive()=spade.xmppd.xmppd.Session-class.html#receive"><a title="spade.xmpp.session.Session.receive
spade.xmpp.transports.TCPsocket.receive
spade.xmppd.xmppd.RPC_Client.receive
spade.xmppd.xmppd.Session.receive" class="py-name" href="#" onclick="return doclink('link-397', 'receive', 'link-397');">receive</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L865"></a><tt class="py-lineno"> 865</tt>  <tt class="py-line">                                            <tt class="py-keyword">except</tt> <tt class="py-name">IOError</tt><tt class="py-op">:</tt> <tt class="py-comment"># client closed the connection</tt> </tt>
<a name="L866"></a><tt class="py-lineno"> 866</tt>  <tt class="py-line">                                                <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-398" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-398', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L867"></a><tt class="py-lineno"> 867</tt>  <tt class="py-line">                                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-399" class="py-name"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-399', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">sess</tt><tt class="py-op">)</tt> </tt>
<a name="L868"></a><tt class="py-lineno"> 868</tt>  <tt class="py-line">                                                <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-string">''</tt> </tt>
<a name="L869"></a><tt class="py-lineno"> 869</tt>  <tt class="py-line">                                            <tt class="py-keyword">if</tt> <tt class="py-name">data</tt><tt class="py-op">:</tt> </tt>
<a name="L870"></a><tt class="py-lineno"> 870</tt>  <tt class="py-line">                                                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L871"></a><tt class="py-lineno"> 871</tt>  <tt class="py-line">                                                    <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt class="py-name">Parse</tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt> </tt>
<a name="L872"></a><tt class="py-lineno"> 872</tt>  <tt class="py-line">                                                <tt class="py-keyword">except</tt> <tt id="link-400" class="py-name"><a title="spade.xmpp.simplexml" class="py-name" href="#" onclick="return doclink('link-400', 'simplexml', 'link-130');">simplexml</a></tt><tt class="py-op">.</tt><tt class="py-name">xml</tt><tt class="py-op">.</tt><tt class="py-name">parsers</tt><tt class="py-op">.</tt><tt class="py-name">expat</tt><tt class="py-op">.</tt><tt class="py-name">ExpatError</tt><tt class="py-op">:</tt> </tt>
<a name="L873"></a><tt class="py-lineno"> 873</tt>  <tt class="py-line">                                                    <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-401" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-401', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-402" class="py-name" targets="Variable spade.Agent.STREAM_XML_NOT_WELL_FORMED=spade.Agent-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.MTP.STREAM_XML_NOT_WELL_FORMED=spade.MTP-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.Organization.STREAM_XML_NOT_WELL_FORMED=spade.Organization-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.Organization_new.STREAM_XML_NOT_WELL_FORMED=spade.Organization_new-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.Unit.STREAM_XML_NOT_WELL_FORMED=spade.Unit-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.Unit_new.STREAM_XML_NOT_WELL_FORMED=spade.Unit_new-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.pubsub.STREAM_XML_NOT_WELL_FORMED=spade.pubsub-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.socialnetwork.STREAM_XML_NOT_WELL_FORMED=spade.socialnetwork-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.STREAM_XML_NOT_WELL_FORMED=spade.xmpp-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.auth.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.auth-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.browser.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.browser-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.commands.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.commands-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.dispatcher.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.dispatcher-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.features.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.features-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.filetransfer.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.filetransfer-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.protocol.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.protocol-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.roster.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.roster-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmpp.transports.STREAM_XML_NOT_WELL_FORMED=spade.xmpp.transports-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.config.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.config-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.db_fake.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.db_fake-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.dialback.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.dialback-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.jep0077.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.jep0077-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.jep0078.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.jep0078-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.message.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.message-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.muc.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.muc-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.oob.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.oob-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.pubsub.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.pubsub-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.roster.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.roster-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.router.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.router-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.stream.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.stream-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.webadmin.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.webadmin-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.modules.wq.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.modules.wq-module.html#STREAM_XML_NOT_WELL_FORMED,Variable spade.xmppd.xmppd.STREAM_XML_NOT_WELL_FORMED=spade.xmppd.xmppd-module.html#STREAM_XML_NOT_WELL_FORMED"><a title="spade.Agent.STREAM_XML_NOT_WELL_FORMED
spade.MTP.STREAM_XML_NOT_WELL_FORMED
spade.Organization.STREAM_XML_NOT_WELL_FORMED
spade.Organization_new.STREAM_XML_NOT_WELL_FORMED
spade.Unit.STREAM_XML_NOT_WELL_FORMED
spade.Unit_new.STREAM_XML_NOT_WELL_FORMED
spade.pubsub.STREAM_XML_NOT_WELL_FORMED
spade.socialnetwork.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.auth.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.browser.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.commands.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.dispatcher.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.features.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.filetransfer.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.protocol.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.roster.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.transports.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.config.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.db_fake.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.dialback.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.jep0077.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.jep0078.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.message.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.muc.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.oob.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.pubsub.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.roster.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.router.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.stream.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.webadmin.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.wq.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.xmppd.STREAM_XML_NOT_WELL_FORMED" class="py-name" href="#" onclick="return doclink('link-402', 'STREAM_XML_NOT_WELL_FORMED', 'link-402');">STREAM_XML_NOT_WELL_FORMED</a></tt><tt class="py-op">)</tt> </tt>
<a name="L874"></a><tt class="py-lineno"> 874</tt>  <tt class="py-line">                                                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-403" class="py-name"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-403', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">sess</tt><tt class="py-op">)</tt> </tt>
<a name="L875"></a><tt class="py-lineno"> 875</tt>  <tt class="py-line">                                            <tt class="py-keyword">if</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt class="py-name">last_seen</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">60.0</tt><tt class="py-op">:</tt> </tt>
<a name="L876"></a><tt class="py-lineno"> 876</tt>  <tt class="py-line">                                                <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-404" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-404', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L877"></a><tt class="py-lineno"> 877</tt>  <tt class="py-line">                                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-405" class="py-name"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-405', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">sess</tt><tt class="py-op">)</tt> </tt>
</div><a name="L878"></a><tt class="py-lineno"> 878</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.multisession_thread.stop"></a><div id="multisession_manager.multisession_thread.stop-def"><a name="L879"></a><tt class="py-lineno"> 879</tt> <a class="py-toggle" href="#" id="multisession_manager.multisession_thread.stop-toggle" onclick="return toggle('multisession_manager.multisession_thread.stop');">-</a><tt class="py-line">                <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#stop">stop</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.multisession_thread.stop-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++++++++++++++"></div><div id="multisession_manager.multisession_thread.stop-expanded"><a name="L880"></a><tt class="py-lineno"> 880</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">alive</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
</div><a name="L881"></a><tt class="py-lineno"> 881</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.multisession_thread.registersession"></a><div id="multisession_manager.multisession_thread.registersession-def"><a name="L882"></a><tt class="py-lineno"> 882</tt> <a class="py-toggle" href="#" id="multisession_manager.multisession_thread.registersession-toggle" onclick="return toggle('multisession_manager.multisession_thread.registersession');">-</a><tt class="py-line">                <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#registersession">registersession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.multisession_thread.registersession-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++++++++++++++"></div><div id="multisession_manager.multisession_thread.registersession-expanded"><a name="L883"></a><tt class="py-lineno"> 883</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">acquire</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L884"></a><tt class="py-lineno"> 884</tt>  <tt class="py-line">                        <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">thread_id</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-406" class="py-name"><a title="spade.Platform.SpadePlatform.index
spade.odict.odict.index" class="py-name" href="#" onclick="return doclink('link-406', 'index', 'link-391');">index</a></tt> </tt>
<a name="L885"></a><tt class="py-lineno"> 885</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt id="link-407" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-407', 'Session', 'link-396');">Session</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L886"></a><tt class="py-lineno"> 886</tt>  <tt class="py-line">                            <tt class="py-keyword">if</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">:</tt> </tt>
<a name="L887"></a><tt class="py-lineno"> 887</tt>  <tt class="py-line">                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L888"></a><tt class="py-lineno"> 888</tt>  <tt class="py-line">                                <tt class="py-keyword">return</tt> </tt>
<a name="L889"></a><tt class="py-lineno"> 889</tt>  <tt class="py-line">                            <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">=</tt><tt class="py-number">1</tt> </tt>
<a name="L890"></a><tt class="py-lineno"> 890</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-408" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-408', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">s</tt> </tt>
<a name="L891"></a><tt class="py-lineno"> 891</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">.</tt><tt id="link-409" class="py-name" targets="Method spade.pyratemp.PseudoSandbox.register()=spade.pyratemp.PseudoSandbox-class.html#register,Function spade.xmpp.features.register()=spade.xmpp.features-module.html#register,Method spade.xmppd.xmppd.fake_select.poll.register()=spade.xmppd.xmppd.fake_select.poll-class.html#register"><a title="spade.pyratemp.PseudoSandbox.register
spade.xmpp.features.register
spade.xmppd.xmppd.fake_select.poll.register" class="py-name" href="#" onclick="return doclink('link-409', 'register', 'link-409');">register</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-number">1</tt> <tt class="py-op">|</tt> <tt class="py-number">2</tt> <tt class="py-op">|</tt> <tt class="py-number">8</tt><tt class="py-op">)</tt> </tt>
<a name="L892"></a><tt class="py-lineno"> 892</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L893"></a><tt class="py-lineno"> 893</tt>  <tt class="py-line"> </tt>
<a name="multisession_manager.multisession_thread.unregistersession"></a><div id="multisession_manager.multisession_thread.unregistersession-def"><a name="L894"></a><tt class="py-lineno"> 894</tt> <a class="py-toggle" href="#" id="multisession_manager.multisession_thread.unregistersession-toggle" onclick="return toggle('multisession_manager.multisession_thread.unregistersession');">-</a><tt class="py-line">                <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#unregistersession">unregistersession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="multisession_manager.multisession_thread.unregistersession-collapsed" style="display:none;" pad="++++" indent="++++++++++++++++++++++++++++"></div><div id="multisession_manager.multisession_thread.unregistersession-expanded"><a name="L895"></a><tt class="py-lineno"> 895</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">acquire</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L896"></a><tt class="py-lineno"> 896</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt id="link-410" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-410', 'Session', 'link-396');">Session</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L897"></a><tt class="py-lineno"> 897</tt>  <tt class="py-line">                             <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">:</tt> </tt>
<a name="L898"></a><tt class="py-lineno"> 898</tt>  <tt class="py-line">                                <tt class="py-name">p</tt><tt class="py-op">=</tt><tt id="link-411" class="py-name"><a title="spade.xmpp.protocol.Presence" class="py-name" href="#" onclick="return doclink('link-411', 'Presence', 'link-307');">Presence</a></tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-string">'unavailable'</tt><tt class="py-op">)</tt> </tt>
<a name="L899"></a><tt class="py-lineno"> 899</tt>  <tt class="py-line">                                <tt class="py-name">p</tt><tt class="py-op">.</tt><tt id="link-412" class="py-name"><a title="spade.xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-412', 'setNamespace', 'link-231');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-413" class="py-name"><a title="spade.Agent.NS_CLIENT
spade.MTP.NS_CLIENT
spade.Organization.NS_CLIENT
spade.Organization_new.NS_CLIENT
spade.Unit.NS_CLIENT
spade.Unit_new.NS_CLIENT
spade.pubsub.NS_CLIENT
spade.socialnetwork.NS_CLIENT
spade.xmpp.NS_CLIENT
spade.xmpp.auth.NS_CLIENT
spade.xmpp.browser.NS_CLIENT
spade.xmpp.commands.NS_CLIENT
spade.xmpp.dispatcher.NS_CLIENT
spade.xmpp.features.NS_CLIENT
spade.xmpp.filetransfer.NS_CLIENT
spade.xmpp.protocol.NS_CLIENT
spade.xmpp.roster.NS_CLIENT
spade.xmpp.transports.NS_CLIENT
spade.xmppd.modules.config.NS_CLIENT
spade.xmppd.modules.db_fake.NS_CLIENT
spade.xmppd.modules.dialback.NS_CLIENT
spade.xmppd.modules.jep0077.NS_CLIENT
spade.xmppd.modules.jep0078.NS_CLIENT
spade.xmppd.modules.message.NS_CLIENT
spade.xmppd.modules.muc.NS_CLIENT
spade.xmppd.modules.oob.NS_CLIENT
spade.xmppd.modules.pubsub.NS_CLIENT
spade.xmppd.modules.roster.NS_CLIENT
spade.xmppd.modules.router.NS_CLIENT
spade.xmppd.modules.stream.NS_CLIENT
spade.xmppd.modules.webadmin.NS_CLIENT
spade.xmppd.modules.wq.NS_CLIENT
spade.xmppd.xmppd.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-413', 'NS_CLIENT', 'link-203');">NS_CLIENT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L900"></a><tt class="py-lineno"> 900</tt>  <tt class="py-line">                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-414" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-414', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-415" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-415', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L901"></a><tt class="py-lineno"> 901</tt>  <tt class="py-line">                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L902"></a><tt class="py-lineno"> 902</tt>  <tt class="py-line">                                <tt class="py-keyword">return</tt> </tt>
<a name="L903"></a><tt class="py-lineno"> 903</tt>  <tt class="py-line">                             <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L904"></a><tt class="py-lineno"> 904</tt>  <tt class="py-line">                             <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">.</tt><tt id="link-416" class="py-name"><a title="spade.xmpp.features.unregister
spade.xmppd.xmppd.fake_select.poll.unregister" class="py-name" href="#" onclick="return doclink('link-416', 'unregister', 'link-296');">unregister</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L905"></a><tt class="py-lineno"> 905</tt>  <tt class="py-line"> </tt>
<a name="L906"></a><tt class="py-lineno"> 906</tt>  <tt class="py-line">                        <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-417" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-417', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-comment"># Destroy the record</tt> </tt>
<a name="L907"></a><tt class="py-lineno"> 907</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-418" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-418', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_NODE_UNREGISTERED</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-op">{</tt><tt class="py-string">'fileno'</tt><tt class="py-op">:</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-419" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-419', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'raw'</tt><tt class="py-op">:</tt><tt class="py-name">s</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L908"></a><tt class="py-lineno"> 908</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div></div></div><a name="L909"></a><tt class="py-lineno"> 909</tt>  <tt class="py-line"> </tt>
<a name="Server"></a><div id="Server-def"><a name="L910"></a><tt class="py-lineno"> 910</tt> <a class="py-toggle" href="#" id="Server-toggle" onclick="return toggle('Server');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html">Server</a><tt class="py-op">:</tt> </tt>
</div><div id="Server-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="Server-expanded"><a name="Server.__init__"></a><div id="Server.__init__-def"><a name="L911"></a><tt class="py-lineno"> 911</tt> <a class="py-toggle" href="#" id="Server.__init__-toggle" onclick="return toggle('Server.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">cfgfile</tt><tt class="py-op">=</tt><tt class="py-string">"./xmppd.xml"</tt><tt class="py-op">,</tt><tt class="py-param">cmd_options</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-param">under_restart</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.__init__-expanded"><a name="L912"></a><tt class="py-lineno"> 912</tt>  <tt class="py-line"><tt class="py-comment">#        threading.Thread.__init__(self)</tt> </tt>
<a name="L913"></a><tt class="py-lineno"> 913</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">defaultNamespace</tt> <tt class="py-op">=</tt> <tt id="link-420" class="py-name"><a title="spade.Agent.NS_CLIENT
spade.MTP.NS_CLIENT
spade.Organization.NS_CLIENT
spade.Organization_new.NS_CLIENT
spade.Unit.NS_CLIENT
spade.Unit_new.NS_CLIENT
spade.pubsub.NS_CLIENT
spade.socialnetwork.NS_CLIENT
spade.xmpp.NS_CLIENT
spade.xmpp.auth.NS_CLIENT
spade.xmpp.browser.NS_CLIENT
spade.xmpp.commands.NS_CLIENT
spade.xmpp.dispatcher.NS_CLIENT
spade.xmpp.features.NS_CLIENT
spade.xmpp.filetransfer.NS_CLIENT
spade.xmpp.protocol.NS_CLIENT
spade.xmpp.roster.NS_CLIENT
spade.xmpp.transports.NS_CLIENT
spade.xmppd.modules.config.NS_CLIENT
spade.xmppd.modules.db_fake.NS_CLIENT
spade.xmppd.modules.dialback.NS_CLIENT
spade.xmppd.modules.jep0077.NS_CLIENT
spade.xmppd.modules.jep0078.NS_CLIENT
spade.xmppd.modules.message.NS_CLIENT
spade.xmppd.modules.muc.NS_CLIENT
spade.xmppd.modules.oob.NS_CLIENT
spade.xmppd.modules.pubsub.NS_CLIENT
spade.xmppd.modules.roster.NS_CLIENT
spade.xmppd.modules.router.NS_CLIENT
spade.xmppd.modules.stream.NS_CLIENT
spade.xmppd.modules.webadmin.NS_CLIENT
spade.xmppd.modules.wq.NS_CLIENT
spade.xmppd.xmppd.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-420', 'NS_CLIENT', 'link-203');">NS_CLIENT</a></tt> </tt>
<a name="L914"></a><tt class="py-lineno"> 914</tt>  <tt class="py-line">        <tt class="py-comment">#Load localizer as _l</tt> </tt>
<a name="L915"></a><tt class="py-lineno"> 915</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">l</tt> <tt class="py-op">=</tt> <tt id="link-421" class="py-name" targets="Class spade.xmppd.xmppd.localizer=spade.xmppd.xmppd.localizer-class.html"><a title="spade.xmppd.xmppd.localizer" class="py-name" href="#" onclick="return doclink('link-421', 'localizer', 'link-421');">localizer</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L916"></a><tt class="py-lineno"> 916</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">l</tt><tt class="py-op">.</tt><tt id="link-422" class="py-name" targets="Method spade.xmppd.xmppd.localizer.localize()=spade.xmppd.xmppd.localizer-class.html#localize"><a title="spade.xmppd.xmppd.localizer.localize" class="py-name" href="#" onclick="return doclink('link-422', 'localize', 'link-422');">localize</a></tt> </tt>
<a name="L917"></a><tt class="py-lineno"> 917</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-423" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-423', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'LANG_LIST'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">l</tt><tt class="py-op">.</tt><tt id="link-424" class="py-name" targets="Method spade.xmppd.xmppd.localizer.build_localeset()=spade.xmppd.xmppd.localizer-class.html#build_localeset"><a title="spade.xmppd.xmppd.localizer.build_localeset" class="py-name" href="#" onclick="return doclink('link-424', 'build_localeset', 'link-424');">build_localeset</a></tt><tt class="py-op">(</tt><tt id="link-425" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-425', 'x', 'link-22');">x</a></tt><tt class="py-op">)</tt> </tt>
<a name="L918"></a><tt class="py-lineno"> 918</tt>  <tt class="py-line"> </tt>
<a name="L919"></a><tt class="py-lineno"> 919</tt>  <tt class="py-line">        <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-426" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-426', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">,</tt><tt class="py-name">False</tt><tt class="py-op">)</tt> </tt>
<a name="L920"></a><tt class="py-lineno"> 920</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L921"></a><tt class="py-lineno"> 921</tt>  <tt class="py-line">            <tt class="py-keyword">import</tt> <tt id="link-427" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-427', 'event', 'link-376');">event</a></tt>   <tt class="py-comment"># Do we have lib event???</tt> </tt>
<a name="L922"></a><tt class="py-lineno"> 922</tt>  <tt class="py-line">            <tt class="py-comment">#print "LIBEVENT ENABLED"</tt> </tt>
<a name="L923"></a><tt class="py-lineno"> 923</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L924"></a><tt class="py-lineno"> 924</tt>  <tt class="py-line">            <tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> <tt class="py-comment"># If not, we'll have to just use the old select :/</tt> </tt>
<a name="L925"></a><tt class="py-lineno"> 925</tt>  <tt class="py-line">            <tt class="py-comment">#print "SELECT ENABLED"</tt> </tt>
<a name="L926"></a><tt class="py-lineno"> 926</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt id="link-428" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-428', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">init</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L927"></a><tt class="py-lineno"> 927</tt>  <tt class="py-line"> </tt>
<a name="L928"></a><tt class="py-lineno"> 928</tt>  <tt class="py-line">        <tt class="py-comment"># Components dict</tt> </tt>
<a name="L929"></a><tt class="py-lineno"> 929</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-429" class="py-name" targets="Variable spade.xmppd.modules.config.components=spade.xmppd.modules.config-module.html#components"><a title="spade.xmppd.modules.config.components" class="py-name" href="#" onclick="return doclink('link-429', 'components', 'link-429');">components</a></tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L930"></a><tt class="py-lineno"> 930</tt>  <tt class="py-line"> </tt>
<a name="L931"></a><tt class="py-lineno"> 931</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L932"></a><tt class="py-lineno"> 932</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L933"></a><tt class="py-lineno"> 933</tt>  <tt class="py-line"> </tt>
<a name="L934"></a><tt class="py-lineno"> 934</tt>  <tt class="py-line">        <tt class="py-name">debug_path</tt> <tt class="py-op">=</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-430" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-430', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'debug_file'</tt><tt class="py-op">,</tt><tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">)</tt> </tt>
<a name="L935"></a><tt class="py-lineno"> 935</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">debug_path</tt> <tt class="py-op">!=</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">stdout</tt><tt class="py-op">:</tt> <tt class="py-name">debug_file</tt> <tt class="py-op">=</tt> <tt class="py-name">file</tt><tt class="py-op">(</tt><tt class="py-name">debug_path</tt><tt class="py-op">,</tt><tt class="py-string">'w+'</tt><tt class="py-op">)</tt> </tt>
<a name="L936"></a><tt class="py-lineno"> 936</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">debug_file</tt> <tt class="py-op">=</tt> <tt class="py-name">debug_path</tt> </tt>
<a name="L937"></a><tt class="py-lineno"> 937</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-431" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-431', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'enable_debug'</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">!=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> <tt id="link-432" class="py-name" targets="Module spade.xmpp.debug=spade.xmpp.debug-module.html"><a title="spade.xmpp.debug" class="py-name" href="#" onclick="return doclink('link-432', 'debug', 'link-432');">debug</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-string">'always'</tt><tt class="py-op">]</tt> </tt>
<a name="L938"></a><tt class="py-lineno"> 938</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt id="link-433" class="py-name"><a title="spade.xmpp.debug" class="py-name" href="#" onclick="return doclink('link-433', 'debug', 'link-432');">debug</a></tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L939"></a><tt class="py-lineno"> 939</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_DEBUG</tt><tt class="py-op">=</tt><tt id="link-434" class="py-name" targets="Class spade.xmpp.debug.Debug=spade.xmpp.debug.Debug-class.html"><a title="spade.xmpp.debug.Debug" class="py-name" href="#" onclick="return doclink('link-434', 'Debug', 'link-434');">Debug</a></tt><tt class="py-op">.</tt><tt id="link-435" class="py-name"><a title="spade.xmpp.debug.Debug" class="py-name" href="#" onclick="return doclink('link-435', 'Debug', 'link-434');">Debug</a></tt><tt class="py-op">(</tt><tt id="link-436" class="py-name"><a title="spade.xmpp.debug" class="py-name" href="#" onclick="return doclink('link-436', 'debug', 'link-432');">debug</a></tt><tt class="py-op">,</tt><tt class="py-name">debug_path</tt><tt class="py-op">)</tt> </tt>
<a name="L940"></a><tt class="py-lineno"> 940</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-437" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-437', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_DEBUG</tt><tt class="py-op">.</tt><tt id="link-438" class="py-name" targets="Method spade.xmpp.debug.Debug.Show()=spade.xmpp.debug.Debug-class.html#Show,Method spade.xmpp.debug.NoDebug.Show()=spade.xmpp.debug.NoDebug-class.html#Show"><a title="spade.xmpp.debug.Debug.Show
spade.xmpp.debug.NoDebug.Show" class="py-name" href="#" onclick="return doclink('link-438', 'Show', 'link-438');">Show</a></tt> </tt>
<a name="L941"></a><tt class="py-lineno"> 941</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_DEBUG</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt> </tt>
<a name="L942"></a><tt class="py-lineno"> 942</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">.</tt><tt id="link-439" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-439', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt class="py-string">'session'</tt><tt class="py-op">)</tt> </tt>
<a name="L943"></a><tt class="py-lineno"> 943</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">.</tt><tt id="link-440" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-440', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt class="py-string">'dispatcher'</tt><tt class="py-op">)</tt> </tt>
<a name="L944"></a><tt class="py-lineno"> 944</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">.</tt><tt id="link-441" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-441', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">)</tt> </tt>
<a name="L945"></a><tt class="py-lineno"> 945</tt>  <tt class="py-line"> </tt>
<a name="L946"></a><tt class="py-lineno"> 946</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> <tt class="py-comment"># and getattr(select,'poll',None) == None:</tt> </tt>
<a name="L947"></a><tt class="py-lineno"> 947</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt> <tt class="py-op">=</tt> <tt id="link-442" class="py-name"><a title="spade.xmppd.xmppd.fake_select" class="py-name" href="#" onclick="return doclink('link-442', 'fake_select', 'link-86');">fake_select</a></tt><tt class="py-op">.</tt><tt id="link-443" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-443', 'poll', 'link-21');">poll</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L948"></a><tt class="py-lineno"> 948</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-444" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-444', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt> <tt class="py-string">'Using fake_select poll'</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L949"></a><tt class="py-lineno"> 949</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L950"></a><tt class="py-lineno"> 950</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">=</tt><tt class="py-name">select</tt><tt class="py-op">.</tt><tt id="link-445" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-445', 'poll', 'link-21');">poll</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L951"></a><tt class="py-lineno"> 951</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-446" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-446', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt> <tt class="py-string">'Using select poll'</tt><tt class="py-op">,</tt> <tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L952"></a><tt class="py-lineno"> 952</tt>  <tt class="py-line"> </tt>
<a name="L953"></a><tt class="py-lineno"> 953</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-447" class="py-name"><a title="spade.xmpp.browser.ID
spade.xmpp.dispatcher.ID" class="py-name" href="#" onclick="return doclink('link-447', 'ID', 'link-114');">ID</a></tt><tt class="py-op">=</tt><tt class="py-op">`</tt><tt class="py-name">random</tt><tt class="py-op">.</tt><tt class="py-name">random</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">`</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">:</tt><tt class="py-op">]</tt> </tt>
<a name="L954"></a><tt class="py-lineno"> 954</tt>  <tt class="py-line"> </tt>
<a name="L955"></a><tt class="py-lineno"> 955</tt>  <tt class="py-line"> </tt>
<a name="L956"></a><tt class="py-lineno"> 956</tt>  <tt class="py-line">        <tt class="py-comment">#Config file</tt> </tt>
<a name="L957"></a><tt class="py-lineno"> 957</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">cfgfile</tt> <tt class="py-op">=</tt> <tt class="py-name">cfgfile</tt> </tt>
<a name="L958"></a><tt class="py-lineno"> 958</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">os</tt><tt class="py-op">.</tt><tt class="py-name">path</tt><tt class="py-op">.</tt><tt class="py-name">exists</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">cfgfile</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L959"></a><tt class="py-lineno"> 959</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-448" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-448', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Could not load configuration file for xmppd. Bye'</tt><tt class="py-op">,</tt> <tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L960"></a><tt class="py-lineno"> 960</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-449" class="py-name" targets="Method spade.spade_backend.SpadeBackend.shutdown()=spade.spade_backend.SpadeBackend-class.html#shutdown,Method spade.xmppd.xmppd.Server.shutdown()=spade.xmppd.xmppd.Server-class.html#shutdown"><a title="spade.spade_backend.SpadeBackend.shutdown
spade.xmppd.xmppd.Server.shutdown" class="py-name" href="#" onclick="return doclink('link-449', 'shutdown', 'link-449');">shutdown</a></tt><tt class="py-op">(</tt><tt id="link-450" class="py-name" targets="Variable spade.Agent.STREAM_SYSTEM_SHUTDOWN=spade.Agent-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.MTP.STREAM_SYSTEM_SHUTDOWN=spade.MTP-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.Organization.STREAM_SYSTEM_SHUTDOWN=spade.Organization-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.Organization_new.STREAM_SYSTEM_SHUTDOWN=spade.Organization_new-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.Unit.STREAM_SYSTEM_SHUTDOWN=spade.Unit-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.Unit_new.STREAM_SYSTEM_SHUTDOWN=spade.Unit_new-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.pubsub.STREAM_SYSTEM_SHUTDOWN=spade.pubsub-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.socialnetwork.STREAM_SYSTEM_SHUTDOWN=spade.socialnetwork-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.STREAM_SYSTEM_SHUTDOWN=spade.xmpp-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.auth.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.auth-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.browser.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.browser-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.commands.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.commands-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.dispatcher.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.dispatcher-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.features.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.features-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.filetransfer.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.filetransfer-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.protocol.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.protocol-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.roster.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.roster-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmpp.transports.STREAM_SYSTEM_SHUTDOWN=spade.xmpp.transports-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.config.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.config-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.db_fake.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.db_fake-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.dialback.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.dialback-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.jep0077.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.jep0077-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.jep0078.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.jep0078-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.message.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.message-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.muc.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.muc-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.oob.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.oob-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.pubsub.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.pubsub-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.roster.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.roster-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.router.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.router-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.stream.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.stream-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.webadmin.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.webadmin-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.modules.wq.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.modules.wq-module.html#STREAM_SYSTEM_SHUTDOWN,Variable spade.xmppd.xmppd.STREAM_SYSTEM_SHUTDOWN=spade.xmppd.xmppd-module.html#STREAM_SYSTEM_SHUTDOWN"><a title="spade.Agent.STREAM_SYSTEM_SHUTDOWN
spade.MTP.STREAM_SYSTEM_SHUTDOWN
spade.Organization.STREAM_SYSTEM_SHUTDOWN
spade.Organization_new.STREAM_SYSTEM_SHUTDOWN
spade.Unit.STREAM_SYSTEM_SHUTDOWN
spade.Unit_new.STREAM_SYSTEM_SHUTDOWN
spade.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.socialnetwork.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.auth.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.browser.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.commands.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.dispatcher.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.features.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.filetransfer.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.protocol.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.transports.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.config.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.db_fake.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.dialback.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0077.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0078.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.message.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.muc.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.oob.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.router.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.stream.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.webadmin.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.wq.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.xmppd.STREAM_SYSTEM_SHUTDOWN" class="py-name" href="#" onclick="return doclink('link-450', 'STREAM_SYSTEM_SHUTDOWN', 'link-450');">STREAM_SYSTEM_SHUTDOWN</a></tt><tt class="py-op">)</tt> </tt>
<a name="L961"></a><tt class="py-lineno"> 961</tt>  <tt class="py-line">                <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exit</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L962"></a><tt class="py-lineno"> 962</tt>  <tt class="py-line"> </tt>
<a name="L963"></a><tt class="py-lineno"> 963</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-451" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-451', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'enable_psyco'</tt><tt class="py-op">,</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L964"></a><tt class="py-lineno"> 964</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-452" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-452', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">"Starting PsyCo..."</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L965"></a><tt class="py-lineno"> 965</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L966"></a><tt class="py-lineno"> 966</tt>  <tt class="py-line">                        <tt class="py-keyword">import</tt> <tt class="py-name">psyco</tt> </tt>
<a name="L967"></a><tt class="py-lineno"> 967</tt>  <tt class="py-line">                        <tt class="py-comment">#psyco.log()</tt> </tt>
<a name="L968"></a><tt class="py-lineno"> 968</tt>  <tt class="py-line">                        <tt class="py-name">psyco</tt><tt class="py-op">.</tt><tt class="py-name">full</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L969"></a><tt class="py-lineno"> 969</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-453" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-453', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">"PsyCo is loaded."</tt><tt class="py-op">,</tt><tt class="py-string">'ok'</tt><tt class="py-op">)</tt> </tt>
<a name="L970"></a><tt class="py-lineno"> 970</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L971"></a><tt class="py-lineno"> 971</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-454" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-454', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt> <tt class="py-string">"Could not Load PsyCo!"</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L972"></a><tt class="py-lineno"> 972</tt>  <tt class="py-line"> </tt>
<a name="L973"></a><tt class="py-lineno"> 973</tt>  <tt class="py-line"> </tt>
<a name="L974"></a><tt class="py-lineno"> 974</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-455" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-455', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'socker_info'</tt><tt class="py-op">,</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">import</tt> <tt class="py-name">xmlrpclib</tt> </tt>
<a name="L975"></a><tt class="py-lineno"> 975</tt>  <tt class="py-line"> </tt>
<a name="L976"></a><tt class="py-lineno"> 976</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-456" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-456', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'password'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L977"></a><tt class="py-lineno"> 977</tt>  <tt class="py-line">            <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">hashlib</tt><tt class="py-op">.</tt><tt class="py-name">sha1</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">+</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'SOCKER_TGUID'</tt><tt class="py-op">]</tt><tt class="py-op">+</tt><tt class="py-name">hashlib</tt><tt class="py-op">.</tt><tt class="py-name">sha1</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">hexdigest</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">hexdigest</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L978"></a><tt class="py-lineno"> 978</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L979"></a><tt class="py-lineno"> 979</tt>  <tt class="py-line">            <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'password'</tt><tt class="py-op">]</tt> </tt>
<a name="L980"></a><tt class="py-lineno"> 980</tt>  <tt class="py-line"> </tt>
<a name="L981"></a><tt class="py-lineno"> 981</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-457" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-457', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">"[SECURITY] RPC_PASSWORD SET TO [%(pass)s]"</tt><tt class="py-op">%</tt><tt class="py-op">{</tt><tt class="py-string">'pass'</tt><tt class="py-op">:</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L982"></a><tt class="py-lineno"> 982</tt>  <tt class="py-line"> </tt>
<a name="L983"></a><tt class="py-lineno"> 983</tt>  <tt class="py-line"> </tt>
<a name="L984"></a><tt class="py-lineno"> 984</tt>  <tt class="py-line">        <tt class="py-comment">#Temp lang stuff</tt> </tt>
<a name="L985"></a><tt class="py-lineno"> 985</tt>  <tt class="py-line">        <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'DEFAULT_LANG'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-458" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-458', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'language'</tt><tt class="py-op">,</tt><tt class="py-string">'en'</tt><tt class="py-op">)</tt> <tt class="py-comment"># Changed to the --lang flag</tt> </tt>
<a name="L986"></a><tt class="py-lineno"> 986</tt>  <tt class="py-line"> </tt>
<a name="L987"></a><tt class="py-lineno"> 987</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-459" class="py-name" targets="Class spade.xmppd.xmppd.multisession_manager=spade.xmppd.xmppd.multisession_manager-class.html"><a title="spade.xmppd.xmppd.multisession_manager" class="py-name" href="#" onclick="return doclink('link-459', 'multisession_manager', 'link-459');">multisession_manager</a></tt> <tt class="py-op">=</tt> <tt id="link-460" class="py-name"><a title="spade.xmppd.xmppd.multisession_manager" class="py-name" href="#" onclick="return doclink('link-460', 'multisession_manager', 'link-459');">multisession_manager</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L988"></a><tt class="py-lineno"> 988</tt>  <tt class="py-line"> </tt>
<a name="L989"></a><tt class="py-lineno"> 989</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_component</tt><tt class="py-op">=</tt><tt class="py-number">0</tt> </tt>
<a name="L990"></a><tt class="py-lineno"> 990</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">=</tt><tt class="py-name">thread</tt><tt class="py-op">.</tt><tt class="py-name">allocate_lock</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L991"></a><tt class="py-lineno"> 991</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-461" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-461', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">=</tt><tt id="link-462" class="py-name" targets="Module spade.xmpp.dispatcher=spade.xmpp.dispatcher-module.html"><a title="spade.xmpp.dispatcher" class="py-name" href="#" onclick="return doclink('link-462', 'dispatcher', 'link-462');">dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-463" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-463', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L992"></a><tt class="py-lineno"> 992</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-464" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-464', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">=</tt><tt class="py-name">self</tt> </tt>
<a name="L993"></a><tt class="py-lineno"> 993</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-465" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-465', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-466" class="py-name" targets="Method spade.xmpp.dispatcher.Dispatcher._init()=spade.xmpp.dispatcher.Dispatcher-class.html#_init"><a title="spade.xmpp.dispatcher.Dispatcher._init" class="py-name" href="#" onclick="return doclink('link-466', '_init', 'link-466');">_init</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L994"></a><tt class="py-lineno"> 994</tt>  <tt class="py-line"> </tt>
<a name="L995"></a><tt class="py-lineno"> 995</tt>  <tt class="py-line">        <tt class="py-comment">#stats</tt> </tt>
<a name="L996"></a><tt class="py-lineno"> 996</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">up_since</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L997"></a><tt class="py-lineno"> 997</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">num_messages</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L998"></a><tt class="py-lineno"> 998</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">num_servers</tt> <tt class="py-op">=</tt> <tt class="py-number">0</tt> </tt>
<a name="L999"></a><tt class="py-lineno"> 999</tt>  <tt class="py-line"> </tt>
<a name="L1000"></a><tt class="py-lineno">1000</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-467" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-467', 'features', 'link-123');">features</a></tt><tt class="py-op">=</tt><tt class="py-op">[</tt><tt class="py-op">]</tt> </tt>
<a name="L1001"></a><tt class="py-lineno">1001</tt>  <tt class="py-line"> </tt>
<a name="L1002"></a><tt class="py-lineno">1002</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">routes</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L1003"></a><tt class="py-lineno">1003</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sisters</tt><tt class="py-op">=</tt><tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L1004"></a><tt class="py-lineno">1004</tt>  <tt class="py-line"> </tt>
<a name="L1005"></a><tt class="py-lineno">1005</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt id="link-468" class="py-name" targets="Package spade.xmppd.modules=spade.xmppd.modules-module.html"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-468', 'modules', 'link-468');">modules</a></tt> </tt>
<a name="L1006"></a><tt class="py-lineno">1006</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">under_restart</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1007"></a><tt class="py-lineno">1007</tt>  <tt class="py-line">            <tt class="py-name">reload</tt><tt class="py-op">(</tt><tt id="link-469" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-469', 'modules', 'link-468');">modules</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1008"></a><tt class="py-lineno">1008</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt class="py-name">addon</tt> <tt class="py-keyword">in</tt> <tt id="link-470" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-470', 'modules', 'link-468');">modules</a></tt><tt class="py-op">.</tt><tt id="link-471" class="py-name" targets="Variable spade.xmppd.modules.addons=spade.xmppd.modules-module.html#addons"><a title="spade.xmppd.modules.addons" class="py-name" href="#" onclick="return doclink('link-471', 'addons', 'link-471');">addons</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1009"></a><tt class="py-lineno">1009</tt>  <tt class="py-line">            <tt class="py-comment">#if issubclass(addon,PlugIn):</tt> </tt>
<a name="L1010"></a><tt class="py-lineno">1010</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1011"></a><tt class="py-lineno">1011</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">under_restart</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1012"></a><tt class="py-lineno">1012</tt>  <tt class="py-line"><tt class="py-comment">#                    self.DEBUG('server','Plugging-out?','info')</tt> </tt>
<a name="L1013"></a><tt class="py-lineno">1013</tt>  <tt class="py-line"> </tt>
<a name="L1014"></a><tt class="py-lineno">1014</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-472" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-472', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Plugging %s out of %s.'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'stop'</tt><tt class="py-op">)</tt> </tt>
<a name="L1015"></a><tt class="py-lineno">1015</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">DBG_LINE</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">:</tt> </tt>
<a name="L1016"></a><tt class="py-lineno">1016</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">.</tt><tt id="link-473" class="py-name"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-473', 'remove', 'link-180');">remove</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">DBG_LINE</tt><tt class="py-op">)</tt> </tt>
<a name="L1017"></a><tt class="py-lineno">1017</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_exported_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1018"></a><tt class="py-lineno">1018</tt>  <tt class="py-line">                        <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_exported_methods</tt><tt class="py-op">:</tt> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1019"></a><tt class="py-lineno">1019</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_old_owners_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1020"></a><tt class="py-lineno">1020</tt>  <tt class="py-line">                        <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_old_owners_methods</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">method</tt> </tt>
<a name="L1021"></a><tt class="py-lineno">1021</tt>  <tt class="py-line">                    <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1022"></a><tt class="py-lineno">1022</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'plugout'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-474" class="py-name" targets="Method spade.xmpp.auth.Bind.plugout()=spade.xmpp.auth.Bind-class.html#plugout,Method spade.xmpp.auth.ComponentBind.plugout()=spade.xmpp.auth.ComponentBind-class.html#plugout,Method spade.xmpp.auth.SASL.plugout()=spade.xmpp.auth.SASL-class.html#plugout,Method spade.xmpp.browser.Browser.plugout()=spade.xmpp.browser.Browser-class.html#plugout,Method spade.xmpp.commands.Command_Handler_Prototype.plugout()=spade.xmpp.commands.Command_Handler_Prototype-class.html#plugout,Method spade.xmpp.commands.Commands.plugout()=spade.xmpp.commands.Commands-class.html#plugout,Method spade.xmpp.dispatcher.Dispatcher.plugout()=spade.xmpp.dispatcher.Dispatcher-class.html#plugout,Method spade.xmpp.transports.TCPsocket.plugout()=spade.xmpp.transports.TCPsocket-class.html#plugout,Method spade.xmpp.transports.TLS.plugout()=spade.xmpp.transports.TLS-class.html#plugout,Method spade.xmppd.modules.message.MessageCatcher.plugout()=spade.xmppd.modules.message.MessageCatcher-class.html#plugout,Method spade.xmppd.modules.webadmin.WebAdmin.plugout()=spade.xmppd.modules.webadmin.WebAdmin-class.html#plugout"><a title="spade.xmpp.auth.Bind.plugout
spade.xmpp.auth.ComponentBind.plugout
spade.xmpp.auth.SASL.plugout
spade.xmpp.browser.Browser.plugout
spade.xmpp.commands.Command_Handler_Prototype.plugout
spade.xmpp.commands.Commands.plugout
spade.xmpp.dispatcher.Dispatcher.plugout
spade.xmpp.transports.TCPsocket.plugout
spade.xmpp.transports.TLS.plugout
spade.xmppd.modules.message.MessageCatcher.plugout
spade.xmppd.modules.webadmin.WebAdmin.plugout" class="py-name" href="#" onclick="return doclink('link-474', 'plugout', 'link-474');">plugout</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1023"></a><tt class="py-lineno">1023</tt>  <tt class="py-line"> </tt>
<a name="L1024"></a><tt class="py-lineno">1024</tt>  <tt class="py-line">                    <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-475" class="py-name" targets="Class spade.xmpp.client.PlugIn=spade.xmpp.client.PlugIn-class.html,Method spade.xmpp.client.PlugIn.PlugIn()=spade.xmpp.client.PlugIn-class.html#PlugIn,Method spade.xmpp.transports.TLS.PlugIn()=spade.xmpp.transports.TLS-class.html#PlugIn"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-475', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L1025"></a><tt class="py-lineno">1025</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1026"></a><tt class="py-lineno">1026</tt>  <tt class="py-line">                    <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-476" class="py-name"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-476', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
<a name="L1027"></a><tt class="py-lineno">1027</tt>  <tt class="py-line">            <tt class="py-comment">#else: self.__dict__[addon().__class__.__name__]=addon()</tt> </tt>
<a name="L1028"></a><tt class="py-lineno">1028</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1029"></a><tt class="py-lineno">1029</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-477" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-477', 'feature', 'link-117');">feature</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">.</tt><tt id="link-478" class="py-name" targets="Variable spade.xmppd.modules.config.Config.NS=spade.xmppd.modules.config.Config-class.html#NS,Variable spade.xmppd.modules.db_fake.AUTH.NS=spade.xmppd.modules.db_fake.AUTH-class.html#NS,Variable spade.xmppd.modules.db_fake.DB.NS=spade.xmppd.modules.db_fake.DB-class.html#NS,Variable spade.xmppd.modules.dialback.Dialback.NS=spade.xmppd.modules.dialback.Dialback-class.html#NS,Variable spade.xmppd.modules.jep0077.IBR.NS=spade.xmppd.modules.jep0077.IBR-class.html#NS,Variable spade.xmppd.modules.jep0078.NSA.NS=spade.xmppd.modules.jep0078.NSA-class.html#NS,Variable spade.xmppd.modules.message.MessageCatcher.NS=spade.xmppd.modules.message.MessageCatcher-class.html#NS,Variable spade.xmppd.modules.muc.MUC.NS=spade.xmppd.modules.muc.MUC-class.html#NS,Variable spade.xmppd.modules.oob.OOB.NS=spade.xmppd.modules.oob.OOB-class.html#NS,Variable spade.xmppd.modules.pubsub.PubSubServer.NS=spade.xmppd.modules.pubsub.PubSubServer-class.html#NS,Variable spade.xmppd.modules.roster.ROSTER.NS=spade.xmppd.modules.roster.ROSTER-class.html#NS,Variable spade.xmppd.modules.router.Router.NS=spade.xmppd.modules.router.Router-class.html#NS,Variable spade.xmppd.modules.stream.Bind.NS=spade.xmppd.modules.stream.Bind-class.html#NS,Variable spade.xmppd.modules.stream.Handshake.NS=spade.xmppd.modules.stream.Handshake-class.html#NS,Variable spade.xmppd.modules.stream.SASL.NS=spade.xmppd.modules.stream.SASL-class.html#NS,Variable spade.xmppd.modules.stream.Session.NS=spade.xmppd.modules.stream.Session-class.html#NS,Variable spade.xmppd.modules.stream.TLS.NS=spade.xmppd.modules.stream.TLS-class.html#NS,Variable spade.xmppd.modules.webadmin.WebAdmin.NS=spade.xmppd.modules.webadmin.WebAdmin-class.html#NS,Variable spade.xmppd.modules.wq.WQ.NS=spade.xmppd.modules.wq.WQ-class.html#NS"><a title="spade.xmppd.modules.config.Config.NS
spade.xmppd.modules.db_fake.AUTH.NS
spade.xmppd.modules.db_fake.DB.NS
spade.xmppd.modules.dialback.Dialback.NS
spade.xmppd.modules.jep0077.IBR.NS
spade.xmppd.modules.jep0078.NSA.NS
spade.xmppd.modules.message.MessageCatcher.NS
spade.xmppd.modules.muc.MUC.NS
spade.xmppd.modules.oob.OOB.NS
spade.xmppd.modules.pubsub.PubSubServer.NS
spade.xmppd.modules.roster.ROSTER.NS
spade.xmppd.modules.router.Router.NS
spade.xmppd.modules.stream.Bind.NS
spade.xmppd.modules.stream.Handshake.NS
spade.xmppd.modules.stream.SASL.NS
spade.xmppd.modules.stream.Session.NS
spade.xmppd.modules.stream.TLS.NS
spade.xmppd.modules.webadmin.WebAdmin.NS
spade.xmppd.modules.wq.WQ.NS" class="py-name" href="#" onclick="return doclink('link-478', 'NS', 'link-478');">NS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1030"></a><tt class="py-lineno">1030</tt>  <tt class="py-line"> </tt>
<a name="L1031"></a><tt class="py-lineno">1031</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">cmd_options</tt> <tt class="py-op">=</tt> <tt class="py-name">cmd_options</tt> </tt>
<a name="L1032"></a><tt class="py-lineno">1032</tt>  <tt class="py-line"> </tt>
<a name="L1033"></a><tt class="py-lineno">1033</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L1034"></a><tt class="py-lineno">1034</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-479" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-479', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'socker_info'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1035"></a><tt class="py-lineno">1035</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt> <tt class="py-op">=</tt> <tt id="link-480" class="py-name" targets="Class spade.xmppd.xmppd.Socker_client=spade.xmppd.xmppd.Socker_client-class.html"><a title="spade.xmppd.xmppd.Socker_client" class="py-name" href="#" onclick="return doclink('link-480', 'Socker_client', 'link-480');">Socker_client</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'socker_info'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'SOCKER_TGUID'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt> </tt>
<a name="L1036"></a><tt class="py-lineno">1036</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt><tt class="py-op">.</tt><tt class="py-name">conn_okay</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1037"></a><tt class="py-lineno">1037</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-481" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-481', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">"[SOCKER] Socker(tm) support is enabled."</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1038"></a><tt class="py-lineno">1038</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-482" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-482', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt> <tt class="py-string">"[SOCKER] Randomizing incoming connection ports."</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1039"></a><tt class="py-lineno">1039</tt>  <tt class="py-line"> </tt>
<a name="L1040"></a><tt class="py-lineno">1040</tt>  <tt class="py-line">            <tt class="py-comment">#Generate port map</tt> </tt>
<a name="L1041"></a><tt class="py-lineno">1041</tt>  <tt class="py-line">            <tt class="py-name">guide</tt> <tt class="py-op">=</tt> <tt class="py-op">[</tt><tt class="py-op">[</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-483" class="py-name" targets="Method spade.xmppd.xmppd.Server.pick_rand()=spade.xmppd.xmppd.Server-class.html#pick_rand"><a title="spade.xmppd.xmppd.Server.pick_rand" class="py-name" href="#" onclick="return doclink('link-483', 'pick_rand', 'link-483');">pick_rand</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'5222'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5223'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-484" class="py-name"><a title="spade.xmppd.xmppd.Server.pick_rand" class="py-name" href="#" onclick="return doclink('link-484', 'pick_rand', 'link-483');">pick_rand</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'5223'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5269'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-485" class="py-name"><a title="spade.xmppd.xmppd.Server.pick_rand" class="py-name" href="#" onclick="return doclink('link-485', 'pick_rand', 'link-483');">pick_rand</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'5269'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-op">[</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_8000'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-486" class="py-name"><a title="spade.xmppd.xmppd.Server.pick_rand" class="py-name" href="#" onclick="return doclink('link-486', 'pick_rand', 'link-483');">pick_rand</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'8000'</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> </tt>
<a name="L1042"></a><tt class="py-lineno">1042</tt>  <tt class="py-line"> </tt>
<a name="L1043"></a><tt class="py-lineno">1043</tt>  <tt class="py-line">            <tt class="py-name">port_map</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L1044"></a><tt class="py-lineno">1044</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-487" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-487', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">guide</tt><tt class="py-op">:</tt> </tt>
<a name="L1045"></a><tt class="py-lineno">1045</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-488" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-488', 'x', 'link-22');">x</a></tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-string">'8000'</tt><tt class="py-op">:</tt> <tt class="py-name">port_map</tt><tt class="py-op">[</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-489" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-489', 'x', 'link-22');">x</a></tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-490" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-490', 'x', 'link-22');">x</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L1046"></a><tt class="py-lineno">1046</tt>  <tt class="py-line">                <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_%s'</tt><tt class="py-op">%</tt><tt id="link-491" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-491', 'x', 'link-22');">x</a></tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt id="link-492" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-492', 'x', 'link-22');">x</a></tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L1047"></a><tt class="py-lineno">1047</tt>  <tt class="py-line"> </tt>
<a name="L1048"></a><tt class="py-lineno">1048</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">port</tt><tt class="py-op">,</tt> <tt class="py-name">new_port</tt> <tt class="py-keyword">in</tt> <tt class="py-name">port_map</tt><tt class="py-op">.</tt><tt id="link-493" class="py-name"><a title="spade.odict.odict.iteritems" class="py-name" href="#" onclick="return doclink('link-493', 'iteritems', 'link-24');">iteritems</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1049"></a><tt class="py-lineno">1049</tt>  <tt class="py-line">                    <tt class="py-name">sock</tt><tt class="py-op">=</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">socket</tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">AF_INET</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOCK_STREAM</tt><tt class="py-op">)</tt> </tt>
<a name="L1050"></a><tt class="py-lineno">1050</tt>  <tt class="py-line">                    <tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">setsockopt</tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOL_SOCKET</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SO_REUSEADDR</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L1051"></a><tt class="py-lineno">1051</tt>  <tt class="py-line">                    <tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">bind</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-name">new_port</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1052"></a><tt class="py-lineno">1052</tt>  <tt class="py-line">                    <tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">listen</tt><tt class="py-op">(</tt><tt class="py-number">4</tt><tt class="py-op">)</tt> </tt>
<a name="L1053"></a><tt class="py-lineno">1053</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-494" class="py-name"><a title="spade.xmppd.xmppd.Server.registersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession
spade.xmppd.xmppd.multisession_manager.registersession" class="py-name" href="#" onclick="return doclink('link-494', 'registersession', 'link-387');">registersession</a></tt><tt class="py-op">(</tt><tt class="py-name">sock</tt><tt class="py-op">)</tt> </tt>
<a name="L1054"></a><tt class="py-lineno">1054</tt>  <tt class="py-line">                    <tt class="py-name">info</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt><tt class="py-op">.</tt><tt id="link-495" class="py-name" targets="Method spade.xmppd.xmppd.Socker_client.add_port()=spade.xmppd.xmppd.Socker_client-class.html#add_port"><a title="spade.xmppd.xmppd.Socker_client.add_port" class="py-name" href="#" onclick="return doclink('link-495', 'add_port', 'link-495');">add_port</a></tt><tt class="py-op">(</tt><tt class="py-name">int</tt><tt class="py-op">(</tt><tt class="py-name">port</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-name">new_port</tt><tt class="py-op">,</tt><tt class="py-op">{</tt><tt class="py-string">'conn_max'</tt><tt class="py-op">:</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'XMPPD_MAX_CONNECTIONS'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'xmlrpc-callback'</tt><tt class="py-op">:</tt><tt class="py-string">'http://%s:%i'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt><tt class="py-op">.</tt><tt class="py-name">_hostname</tt><tt class="py-op">,</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_8000'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'pass'</tt><tt class="py-op">:</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'RPC_PASSWORD'</tt><tt class="py-op">]</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L1055"></a><tt class="py-lineno">1055</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">info</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1056"></a><tt class="py-lineno">1056</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt><tt class="py-op">.</tt><tt id="link-496" class="py-name"><a title="spade.Organization.Organization.destroy
spade.Organization_new.Organization_new.destroy
spade.Unit.Unit.destroy
spade.Unit_new.Unit_new.destroy
spade.xmpp.simplexml.NodeBuilder.destroy
spade.xmppd.xmppd.Socker_client.destroy
spade.xmppd.xmppd.multisession_manager.destroy" class="py-name" href="#" onclick="return doclink('link-496', 'destroy', 'link-332');">destroy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1057"></a><tt class="py-lineno">1057</tt>  <tt class="py-line">                        <tt class="py-keyword">raise</tt> <tt class="py-name">Exception</tt> </tt>
<a name="L1058"></a><tt class="py-lineno">1058</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1059"></a><tt class="py-lineno">1059</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt id="link-497" class="py-name"><a title="spade.odict.odict.setdefault" class="py-name" href="#" onclick="return doclink('link-497', 'setdefault', 'link-347');">setdefault</a></tt><tt class="py-op">(</tt><tt class="py-string">'socker_info'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1060"></a><tt class="py-lineno">1060</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-498" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-498', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">"[SOCKER] Socker(tm) support could not be enabled. Please make sure that the Socker server is active."</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L1061"></a><tt class="py-lineno">1061</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt> <tt class="py-op">=</tt> <tt class="py-name">None</tt> </tt>
<a name="L1062"></a><tt class="py-lineno">1062</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt class="py-name">port</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5223'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5269'</tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L1063"></a><tt class="py-lineno">1063</tt>  <tt class="py-line">                <tt class="py-name">sock</tt><tt class="py-op">=</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">socket</tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">AF_INET</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOCK_STREAM</tt><tt class="py-op">)</tt> </tt>
<a name="L1064"></a><tt class="py-lineno">1064</tt>  <tt class="py-line">                <tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">setsockopt</tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOL_SOCKET</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SO_REUSEADDR</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L1065"></a><tt class="py-lineno">1065</tt>  <tt class="py-line">                <tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">bind</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-name">port</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1066"></a><tt class="py-lineno">1066</tt>  <tt class="py-line">                <tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">listen</tt><tt class="py-op">(</tt><tt class="py-number">4</tt><tt class="py-op">)</tt> </tt>
<a name="L1067"></a><tt class="py-lineno">1067</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-499" class="py-name"><a title="spade.xmppd.xmppd.Server.registersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession
spade.xmppd.xmppd.multisession_manager.registersession" class="py-name" href="#" onclick="return doclink('link-499', 'registersession', 'link-387');">registersession</a></tt><tt class="py-op">(</tt><tt class="py-name">sock</tt><tt class="py-op">)</tt> </tt>
<a name="L1068"></a><tt class="py-lineno">1068</tt>  <tt class="py-line"> </tt>
<a name="L1069"></a><tt class="py-lineno">1069</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">=</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">socket</tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">AF_INET</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOCK_STREAM</tt><tt class="py-op">)</tt> </tt>
<a name="L1070"></a><tt class="py-lineno">1070</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">setsockopt</tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOL_SOCKET</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SO_REUSEADDR</tt><tt class="py-op">,</tt> <tt class="py-number">1</tt><tt class="py-op">)</tt> </tt>
<a name="L1071"></a><tt class="py-lineno">1071</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">bind</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-string">''</tt><tt class="py-op">,</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_8000'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-comment">#add host_name specific later</tt> </tt>
<a name="L1072"></a><tt class="py-lineno">1072</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">listen</tt><tt class="py-op">(</tt><tt class="py-number">4</tt><tt class="py-op">)</tt> </tt>
<a name="L1073"></a><tt class="py-lineno">1073</tt>  <tt class="py-line"> </tt>
<a name="L1074"></a><tt class="py-lineno">1074</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1075"></a><tt class="py-lineno">1075</tt>  <tt class="py-line">            <tt class="py-name">reg_method</tt> <tt class="py-op">=</tt> <tt class="py-string">'select'</tt> </tt>
<a name="L1076"></a><tt class="py-lineno">1076</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">.</tt><tt id="link-500" class="py-name"><a title="spade.pyratemp.PseudoSandbox.register
spade.xmpp.features.register
spade.xmppd.xmppd.fake_select.poll.register" class="py-name" href="#" onclick="return doclink('link-500', 'register', 'link-409');">register</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-number">1</tt> <tt class="py-op">|</tt> <tt class="py-number">2</tt> <tt class="py-op">|</tt> <tt class="py-number">8</tt><tt class="py-op">)</tt> </tt>
<a name="L1077"></a><tt class="py-lineno">1077</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-comment">#event</tt> </tt>
<a name="L1078"></a><tt class="py-lineno">1078</tt>  <tt class="py-line">            <tt class="py-name">reg_method</tt> <tt class="py-op">=</tt> <tt class="py-string">'libevent'</tt> </tt>
<a name="L1079"></a><tt class="py-lineno">1079</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-501" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-501', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">=</tt> <tt id="link-502" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-502', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt id="link-503" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-503', 'event', 'link-376');">event</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-504" class="py-name" targets="Method spade.xmppd.xmppd.Server.libevent_read_callback()=spade.xmppd.xmppd.Server-class.html#libevent_read_callback"><a title="spade.xmppd.xmppd.Server.libevent_read_callback" class="py-name" href="#" onclick="return doclink('link-504', 'libevent_read_callback', 'link-504');">libevent_read_callback</a></tt><tt class="py-op">,</tt> <tt id="link-505" class="py-name" targets="Method spade.SIMBA.SIMBA.InboxBehaviour.SimbaRequestHandler.handle()=spade.SIMBA.SIMBA.InboxBehaviour.SimbaRequestHandler-class.html#handle,Method spade.peer2peer.P2PBehaviour.P2PRequestHandler.handle()=spade.peer2peer.P2PBehaviour.P2PRequestHandler-class.html#handle"><a title="spade.SIMBA.SIMBA.InboxBehaviour.SimbaRequestHandler.handle
spade.peer2peer.P2PBehaviour.P2PRequestHandler.handle" class="py-name" href="#" onclick="return doclink('link-505', 'handle', 'link-505');">handle</a></tt> <tt class="py-op">=</tt> <tt class="py-name">s</tt><tt class="py-op">,</tt> <tt class="py-name">evtype</tt> <tt class="py-op">=</tt> <tt id="link-506" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-506', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">EV_TIMEOUT</tt> <tt class="py-op">|</tt> <tt id="link-507" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-507', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">EV_READ</tt> <tt class="py-op">|</tt> <tt id="link-508" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-508', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">EV_PERSIST</tt><tt class="py-op">)</tt> </tt>
<a name="L1080"></a><tt class="py-lineno">1080</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-509" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-509', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1081"></a><tt class="py-lineno">1081</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-510" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-510', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-511" class="py-name"><a title="spade.bdi.PlanList.add
spade.tbcbp.CaseDB.add" class="py-name" href="#" onclick="return doclink('link-511', 'add', 'link-353');">add</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1082"></a><tt class="py-lineno">1082</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-512" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-512', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">s</tt> </tt>
</div><a name="L1083"></a><tt class="py-lineno">1083</tt>  <tt class="py-line"> </tt>
<a name="L1084"></a><tt class="py-lineno">1084</tt>  <tt class="py-line"> </tt>
<a name="Server.tool_split_jid"></a><div id="Server.tool_split_jid-def"><a name="L1085"></a><tt class="py-lineno">1085</tt> <a class="py-toggle" href="#" id="Server.tool_split_jid-toggle" onclick="return toggle('Server.tool_split_jid');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#tool_split_jid">tool_split_jid</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">jid</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.tool_split_jid-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.tool_split_jid-expanded"><a name="L1086"></a><tt class="py-lineno">1086</tt>  <tt class="py-line">        <tt class="py-docstring">"Returns tuple of id,server,resource"</tt> </tt>
<a name="L1087"></a><tt class="py-lineno">1087</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">"@"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">jid</tt><tt class="py-op">:</tt> </tt>
<a name="L1088"></a><tt class="py-lineno">1088</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">id</tt><tt class="py-op">,</tt><tt class="py-name">extras</tt><tt class="py-op">=</tt><tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'@'</tt><tt class="py-op">)</tt> </tt>
<a name="L1089"></a><tt class="py-lineno">1089</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">None</tt> </tt>
<a name="L1090"></a><tt class="py-lineno">1090</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-name">server</tt><tt class="py-op">,</tt><tt class="py-name">resource</tt><tt class="py-op">=</tt><tt class="py-name">extras</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">'/'</tt><tt class="py-op">)</tt> </tt>
<a name="L1091"></a><tt class="py-lineno">1091</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">id</tt><tt class="py-op">,</tt><tt class="py-name">extras</tt><tt class="py-op">)</tt> </tt>
<a name="L1092"></a><tt class="py-lineno">1092</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">id</tt><tt class="py-op">,</tt><tt class="py-name">server</tt><tt class="py-op">,</tt><tt class="py-name">resource</tt><tt class="py-op">)</tt> </tt>
<a name="L1093"></a><tt class="py-lineno">1093</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt>  <tt class="py-comment"># Component or Server</tt> </tt>
<a name="L1094"></a><tt class="py-lineno">1094</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-string">"/"</tt> <tt class="py-keyword">in</tt> <tt class="py-name">jid</tt><tt class="py-op">:</tt>  <tt class="py-comment"># With resource</tt> </tt>
<a name="L1095"></a><tt class="py-lineno">1095</tt>  <tt class="py-line">                        <tt class="py-name">server</tt><tt class="py-op">,</tt> <tt class="py-name">extras</tt> <tt class="py-op">=</tt> <tt class="py-name">jid</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">"/"</tt><tt class="py-op">)</tt> </tt>
<a name="L1096"></a><tt class="py-lineno">1096</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">server</tt><tt class="py-op">,</tt> <tt class="py-name">extras</tt><tt class="py-op">)</tt> </tt>
<a name="L1097"></a><tt class="py-lineno">1097</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt>  <tt class="py-comment"># No resource, only dots</tt> </tt>
<a name="L1098"></a><tt class="py-lineno">1098</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">jid</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1099"></a><tt class="py-lineno">1099</tt>  <tt class="py-line"> </tt>
<a name="Server.tool_timeDurration"></a><div id="Server.tool_timeDurration-def"><a name="L1100"></a><tt class="py-lineno">1100</tt> <a class="py-toggle" href="#" id="Server.tool_timeDurration-toggle" onclick="return toggle('Server.tool_timeDurration');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#tool_timeDurration">tool_timeDurration</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">the_time</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.tool_timeDurration-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.tool_timeDurration-expanded"><a name="L1101"></a><tt class="py-lineno">1101</tt>  <tt class="py-line">        <tt class="py-name">days</tt> <tt class="py-op">=</tt> <tt class="py-name">floor</tt><tt class="py-op">(</tt><tt class="py-name">the_time</tt><tt class="py-op">/</tt><tt class="py-number">60</tt><tt class="py-op">/</tt><tt class="py-number">60</tt><tt class="py-op">/</tt><tt class="py-number">24</tt><tt class="py-op">)</tt> </tt>
<a name="L1102"></a><tt class="py-lineno">1102</tt>  <tt class="py-line">        <tt class="py-name">hours</tt> <tt class="py-op">=</tt> <tt class="py-name">floor</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">the_time</tt> <tt class="py-op">-</tt> <tt class="py-name">days</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">24</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-number">60</tt><tt class="py-op">/</tt><tt class="py-number">60</tt><tt class="py-op">)</tt> </tt>
<a name="L1103"></a><tt class="py-lineno">1103</tt>  <tt class="py-line">        <tt class="py-name">minutes</tt> <tt class="py-op">=</tt> <tt class="py-name">floor</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">the_time</tt> <tt class="py-op">-</tt> <tt class="py-name">days</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">24</tt> <tt class="py-op">-</tt> <tt class="py-name">hours</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">)</tt><tt class="py-op">/</tt><tt class="py-number">60</tt><tt class="py-op">)</tt> </tt>
<a name="L1104"></a><tt class="py-lineno">1104</tt>  <tt class="py-line">        <tt class="py-name">seconds</tt> <tt class="py-op">=</tt> <tt class="py-name">floor</tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">the_time</tt> <tt class="py-op">-</tt> <tt class="py-name">days</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">24</tt> <tt class="py-op">-</tt> <tt class="py-name">hours</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">*</tt><tt class="py-number">60</tt> <tt class="py-op">-</tt> <tt class="py-name">minutes</tt><tt class="py-op">*</tt><tt class="py-number">60</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1105"></a><tt class="py-lineno">1105</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-op">(</tt><tt class="py-name">days</tt><tt class="py-op">,</tt><tt class="py-name">hours</tt><tt class="py-op">,</tt><tt class="py-name">minutes</tt><tt class="py-op">,</tt><tt class="py-name">seconds</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1106"></a><tt class="py-lineno">1106</tt>  <tt class="py-line"> </tt>
<a name="Server.tool_readableTimeDurration"></a><div id="Server.tool_readableTimeDurration-def"><a name="L1107"></a><tt class="py-lineno">1107</tt> <a class="py-toggle" href="#" id="Server.tool_readableTimeDurration-toggle" onclick="return toggle('Server.tool_readableTimeDurration');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#tool_readableTimeDurration">tool_readableTimeDurration</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">in_time</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.tool_readableTimeDurration-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.tool_readableTimeDurration-expanded"><a name="L1108"></a><tt class="py-lineno">1108</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">type</tt><tt class="py-op">(</tt><tt class="py-name">in_time</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-number">1</tt><tt class="py-op">,</tt><tt class="py-op">)</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">in_time</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-513" class="py-name" targets="Method spade.xmppd.xmppd.Server.tool_timeDurration()=spade.xmppd.xmppd.Server-class.html#tool_timeDurration"><a title="spade.xmppd.xmppd.Server.tool_timeDurration" class="py-name" href="#" onclick="return doclink('link-513', 'tool_timeDurration', 'link-513');">tool_timeDurration</a></tt><tt class="py-op">(</tt><tt class="py-name">in_time</tt><tt class="py-op">)</tt> </tt>
<a name="L1109"></a><tt class="py-lineno">1109</tt>  <tt class="py-line">        <tt class="py-name">out</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L1110"></a><tt class="py-lineno">1110</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">&gt;=</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">out</tt> <tt class="py-op">+=</tt> <tt class="py-string">'%i%s '</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'d'</tt><tt class="py-op">)</tt> </tt>
<a name="L1111"></a><tt class="py-lineno">1111</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">&gt;=</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">out</tt> <tt class="py-op">+=</tt> <tt class="py-string">'%i%s '</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'h'</tt><tt class="py-op">)</tt> </tt>
<a name="L1112"></a><tt class="py-lineno">1112</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">&gt;=</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">out</tt> <tt class="py-op">+=</tt> <tt class="py-string">'%i%s '</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'m'</tt><tt class="py-op">)</tt> </tt>
<a name="L1113"></a><tt class="py-lineno">1113</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">&gt;=</tt><tt class="py-number">1</tt><tt class="py-op">:</tt> <tt class="py-name">out</tt> <tt class="py-op">+=</tt> <tt class="py-string">'%i%s '</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">in_time</tt><tt class="py-op">[</tt><tt class="py-number">3</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'s'</tt><tt class="py-op">)</tt> </tt>
<a name="L1114"></a><tt class="py-lineno">1114</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">out</tt> </tt>
</div><a name="L1115"></a><tt class="py-lineno">1115</tt>  <tt class="py-line"> </tt>
<a name="Server.tool_get_status"></a><div id="Server.tool_get_status-def"><a name="L1116"></a><tt class="py-lineno">1116</tt> <a class="py-toggle" href="#" id="Server.tool_get_status-toggle" onclick="return toggle('Server.tool_get_status');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#tool_get_status">tool_get_status</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.tool_get_status-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.tool_get_status-expanded"><a name="L1117"></a><tt class="py-lineno">1117</tt>  <tt class="py-line">        <tt class="py-docstring">"Get this node's status"</tt> </tt>
<a name="L1118"></a><tt class="py-lineno">1118</tt>  <tt class="py-line">        <tt class="py-name">data</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L1119"></a><tt class="py-lineno">1119</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'soft'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'BlueBridge Jibber-Jabber 0.3'</tt> </tt>
<a name="L1120"></a><tt class="py-lineno">1120</tt>  <tt class="py-line"> </tt>
<a name="L1121"></a><tt class="py-lineno">1121</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'no_registered'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L1122"></a><tt class="py-lineno">1122</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-514" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-514', 'x', 'link-22');">x</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-515" class="py-name"><a title="spade.xmppd.modules.config.servernames" class="py-name" href="#" onclick="return doclink('link-515', 'servernames', 'link-201');">servernames</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1123"></a><tt class="py-lineno">1123</tt>  <tt class="py-line">            <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'no_registered'</tt><tt class="py-op">]</tt><tt class="py-op">[</tt><tt id="link-516" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-516', 'x', 'link-22');">x</a></tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-517" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-517', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-518" class="py-name" targets="Method spade.xmppd.modules.db_fake.DB.getNumRegistered()=spade.xmppd.modules.db_fake.DB-class.html#getNumRegistered"><a title="spade.xmppd.modules.db_fake.DB.getNumRegistered" class="py-name" href="#" onclick="return doclink('link-518', 'getNumRegistered', 'link-518');">getNumRegistered</a></tt><tt class="py-op">(</tt><tt id="link-519" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-519', 'x', 'link-22');">x</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1124"></a><tt class="py-lineno">1124</tt>  <tt class="py-line"> </tt>
<a name="L1125"></a><tt class="py-lineno">1125</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'uptime'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-520" class="py-name" targets="Method spade.xmppd.xmppd.Server.tool_readableTimeDurration()=spade.xmppd.xmppd.Server-class.html#tool_readableTimeDurration"><a title="spade.xmppd.xmppd.Server.tool_readableTimeDurration" class="py-name" href="#" onclick="return doclink('link-520', 'tool_readableTimeDurration', 'link-520');">tool_readableTimeDurration</a></tt><tt class="py-op">(</tt><tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">up_since</tt><tt class="py-op">)</tt> </tt>
<a name="L1126"></a><tt class="py-lineno">1126</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'raw_uptime'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">up_since</tt> </tt>
<a name="L1127"></a><tt class="py-lineno">1127</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'no_routes'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">routes</tt><tt class="py-op">.</tt><tt id="link-521" class="py-name"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-521', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1128"></a><tt class="py-lineno">1128</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'no_reg_users_conn'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">len</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-522" class="py-name" targets="Class spade.xmppd.modules.router.Router=spade.xmppd.modules.router.Router-class.html"><a title="spade.xmppd.modules.router.Router" class="py-name" href="#" onclick="return doclink('link-522', 'Router', 'link-522');">Router</a></tt><tt class="py-op">.</tt><tt class="py-name">_data</tt><tt class="py-op">)</tt> </tt>
<a name="L1129"></a><tt class="py-lineno">1129</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'no_conn_servers'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">num_servers</tt> </tt>
<a name="L1130"></a><tt class="py-lineno">1130</tt>  <tt class="py-line">        <tt class="py-name">data</tt><tt class="py-op">[</tt><tt class="py-string">'no_msg_routed'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">num_messages</tt> </tt>
<a name="L1131"></a><tt class="py-lineno">1131</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">data</tt> </tt>
</div><a name="L1132"></a><tt class="py-lineno">1132</tt>  <tt class="py-line"> </tt>
<a name="Server.feature"></a><div id="Server.feature-def"><a name="L1133"></a><tt class="py-lineno">1133</tt> <a class="py-toggle" href="#" id="Server.feature-toggle" onclick="return toggle('Server.feature');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#feature">feature</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">feature</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.feature-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.feature-expanded"><a name="L1134"></a><tt class="py-lineno">1134</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-523" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-523', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">and</tt> <tt id="link-524" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-524', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">not</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-525" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-525', 'features', 'link-123');">features</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-526" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-526', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-527" class="py-name"><a title="spade.pyparsing.ParseExpression.append" class="py-name" href="#" onclick="return doclink('link-527', 'append', 'link-124');">append</a></tt><tt class="py-op">(</tt><tt id="link-528" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-528', 'feature', 'link-117');">feature</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L1135"></a><tt class="py-lineno">1135</tt>  <tt class="py-line"> </tt>
<a name="Server.unfeature"></a><div id="Server.unfeature-def"><a name="L1136"></a><tt class="py-lineno">1136</tt> <a class="py-toggle" href="#" id="Server.unfeature-toggle" onclick="return toggle('Server.unfeature');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#unfeature">unfeature</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">feature</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.unfeature-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.unfeature-expanded"><a name="L1137"></a><tt class="py-lineno">1137</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt id="link-529" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-529', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">and</tt> <tt id="link-530" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-530', 'feature', 'link-117');">feature</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-531" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-531', 'features', 'link-123');">features</a></tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-532" class="py-name"><a title="spade.xmpp.features" class="py-name" href="#" onclick="return doclink('link-532', 'features', 'link-123');">features</a></tt><tt class="py-op">.</tt><tt id="link-533" class="py-name"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-533', 'remove', 'link-180');">remove</a></tt><tt class="py-op">(</tt><tt id="link-534" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-534', 'feature', 'link-117');">feature</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L1138"></a><tt class="py-lineno">1138</tt>  <tt class="py-line"> </tt>
<a name="Server.registersession"></a><div id="Server.registersession-def"><a name="L1139"></a><tt class="py-lineno">1139</tt> <a class="py-toggle" href="#" id="Server.registersession-toggle" onclick="return toggle('Server.registersession');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#registersession">registersession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.registersession-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.registersession-expanded"><a name="L1140"></a><tt class="py-lineno">1140</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">acquire</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1141"></a><tt class="py-lineno">1141</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt id="link-535" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-535', 'Session', 'link-396');">Session</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1142"></a><tt class="py-lineno">1142</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">:</tt> </tt>
<a name="L1143"></a><tt class="py-lineno">1143</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1144"></a><tt class="py-lineno">1144</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_DEBUG</tt><tt class="py-op">.</tt><tt class="py-name">active</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt class="py-string">"Twice session Registration!"</tt> </tt>
<a name="L1145"></a><tt class="py-lineno">1145</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L1146"></a><tt class="py-lineno">1146</tt>  <tt class="py-line">            <tt class="py-comment">#s._registered=1</tt> </tt>
<a name="L1147"></a><tt class="py-lineno">1147</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-536" class="py-name"><a title="spade.xmppd.xmppd.multisession_manager" class="py-name" href="#" onclick="return doclink('link-536', 'multisession_manager', 'link-459');">multisession_manager</a></tt><tt class="py-op">.</tt><tt id="link-537" class="py-name"><a title="spade.xmppd.xmppd.Server.registersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession
spade.xmppd.xmppd.multisession_manager.registersession" class="py-name" href="#" onclick="return doclink('link-537', 'registersession', 'link-387');">registersession</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1148"></a><tt class="py-lineno">1148</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1149"></a><tt class="py-lineno">1149</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L1150"></a><tt class="py-lineno">1150</tt>  <tt class="py-line">        <tt class="py-name">reg_method</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L1151"></a><tt class="py-lineno">1151</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-538" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-538', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">s</tt> </tt>
<a name="L1152"></a><tt class="py-lineno">1152</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1153"></a><tt class="py-lineno">1153</tt>  <tt class="py-line">            <tt class="py-name">reg_method</tt> <tt class="py-op">=</tt> <tt class="py-string">'select'</tt> </tt>
<a name="L1154"></a><tt class="py-lineno">1154</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">.</tt><tt id="link-539" class="py-name"><a title="spade.pyratemp.PseudoSandbox.register
spade.xmpp.features.register
spade.xmppd.xmppd.fake_select.poll.register" class="py-name" href="#" onclick="return doclink('link-539', 'register', 'link-409');">register</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-number">1</tt> <tt class="py-op">|</tt> <tt class="py-number">2</tt> <tt class="py-op">|</tt> <tt class="py-number">8</tt><tt class="py-op">)</tt> </tt>
<a name="L1155"></a><tt class="py-lineno">1155</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-comment">#if 'event' in globals().keys():</tt> </tt>
<a name="L1156"></a><tt class="py-lineno">1156</tt>  <tt class="py-line">            <tt class="py-name">reg_method</tt> <tt class="py-op">=</tt> <tt class="py-string">'libevent'</tt> </tt>
<a name="L1157"></a><tt class="py-lineno">1157</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-540" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-540', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">=</tt> <tt id="link-541" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-541', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt id="link-542" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-542', 'event', 'link-376');">event</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-543" class="py-name"><a title="spade.xmppd.xmppd.Server.libevent_read_callback" class="py-name" href="#" onclick="return doclink('link-543', 'libevent_read_callback', 'link-504');">libevent_read_callback</a></tt><tt class="py-op">,</tt> <tt id="link-544" class="py-name"><a title="spade.SIMBA.SIMBA.InboxBehaviour.SimbaRequestHandler.handle
spade.peer2peer.P2PBehaviour.P2PRequestHandler.handle" class="py-name" href="#" onclick="return doclink('link-544', 'handle', 'link-505');">handle</a></tt> <tt class="py-op">=</tt> <tt class="py-name">s</tt><tt class="py-op">,</tt> <tt class="py-name">evtype</tt> <tt class="py-op">=</tt> <tt id="link-545" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-545', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">EV_TIMEOUT</tt> <tt class="py-op">|</tt> <tt id="link-546" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-546', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">EV_READ</tt> <tt class="py-op">|</tt> <tt id="link-547" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-547', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">EV_PERSIST</tt><tt class="py-op">)</tt> </tt>
<a name="L1158"></a><tt class="py-lineno">1158</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-548" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-548', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1159"></a><tt class="py-lineno">1159</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-549" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-549', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-550" class="py-name"><a title="spade.bdi.PlanList.add
spade.tbcbp.CaseDB.add" class="py-name" href="#" onclick="return doclink('link-550', 'add', 'link-353');">add</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1160"></a><tt class="py-lineno">1160</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt><tt class="py-op">,</tt><tt id="link-551" class="py-name"><a title="spade.xmppd.xmppd.Socker_client" class="py-name" href="#" onclick="return doclink('link-551', 'Socker_client', 'link-480');">Socker_client</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1161"></a><tt class="py-lineno">1161</tt>  <tt class="py-line">            <tt class="py-name">socker_notice</tt> <tt class="py-op">=</tt> <tt class="py-string">"-&gt;[SOCKER(TM)]"</tt> </tt>
<a name="L1162"></a><tt class="py-lineno">1162</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1163"></a><tt class="py-lineno">1163</tt>  <tt class="py-line">            <tt class="py-name">socker_notice</tt> <tt class="py-op">=</tt> <tt class="py-string">''</tt> </tt>
<a name="L1164"></a><tt class="py-lineno">1164</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-552" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-552', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_NODE_REGISTERED</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-op">{</tt><tt class="py-string">'fileno'</tt><tt class="py-op">:</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-553" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-553', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'raw'</tt><tt class="py-op">:</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-string">'method'</tt><tt class="py-op">:</tt><tt class="py-name">reg_method</tt><tt class="py-op">,</tt><tt class="py-string">'socker_notice'</tt><tt class="py-op">:</tt><tt class="py-name">socker_notice</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L1165"></a><tt class="py-lineno">1165</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1166"></a><tt class="py-lineno">1166</tt>  <tt class="py-line"> </tt>
<a name="Server.unregistersession"></a><div id="Server.unregistersession-def"><a name="L1167"></a><tt class="py-lineno">1167</tt> <a class="py-toggle" href="#" id="Server.unregistersession-toggle" onclick="return toggle('Server.unregistersession');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#unregistersession">unregistersession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">s</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.unregistersession-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.unregistersession-expanded"><a name="L1168"></a><tt class="py-lineno">1168</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">acquire</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1169"></a><tt class="py-lineno">1169</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt id="link-554" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-554', 'Session', 'link-396');">Session</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1170"></a><tt class="py-lineno">1170</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">_registered</tt><tt class="py-op">:</tt> </tt>
<a name="L1171"></a><tt class="py-lineno">1171</tt>  <tt class="py-line">                <tt class="py-name">p</tt><tt class="py-op">=</tt><tt id="link-555" class="py-name"><a title="spade.xmpp.protocol.Presence" class="py-name" href="#" onclick="return doclink('link-555', 'Presence', 'link-307');">Presence</a></tt><tt class="py-op">(</tt><tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-string">'unavailable'</tt><tt class="py-op">)</tt> </tt>
<a name="L1172"></a><tt class="py-lineno">1172</tt>  <tt class="py-line">                <tt class="py-name">p</tt><tt class="py-op">.</tt><tt id="link-556" class="py-name"><a title="spade.xmpp.simplexml.Node.setNamespace" class="py-name" href="#" onclick="return doclink('link-556', 'setNamespace', 'link-231');">setNamespace</a></tt><tt class="py-op">(</tt><tt id="link-557" class="py-name"><a title="spade.Agent.NS_CLIENT
spade.MTP.NS_CLIENT
spade.Organization.NS_CLIENT
spade.Organization_new.NS_CLIENT
spade.Unit.NS_CLIENT
spade.Unit_new.NS_CLIENT
spade.pubsub.NS_CLIENT
spade.socialnetwork.NS_CLIENT
spade.xmpp.NS_CLIENT
spade.xmpp.auth.NS_CLIENT
spade.xmpp.browser.NS_CLIENT
spade.xmpp.commands.NS_CLIENT
spade.xmpp.dispatcher.NS_CLIENT
spade.xmpp.features.NS_CLIENT
spade.xmpp.filetransfer.NS_CLIENT
spade.xmpp.protocol.NS_CLIENT
spade.xmpp.roster.NS_CLIENT
spade.xmpp.transports.NS_CLIENT
spade.xmppd.modules.config.NS_CLIENT
spade.xmppd.modules.db_fake.NS_CLIENT
spade.xmppd.modules.dialback.NS_CLIENT
spade.xmppd.modules.jep0077.NS_CLIENT
spade.xmppd.modules.jep0078.NS_CLIENT
spade.xmppd.modules.message.NS_CLIENT
spade.xmppd.modules.muc.NS_CLIENT
spade.xmppd.modules.oob.NS_CLIENT
spade.xmppd.modules.pubsub.NS_CLIENT
spade.xmppd.modules.roster.NS_CLIENT
spade.xmppd.modules.router.NS_CLIENT
spade.xmppd.modules.stream.NS_CLIENT
spade.xmppd.modules.webadmin.NS_CLIENT
spade.xmppd.modules.wq.NS_CLIENT
spade.xmppd.xmppd.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-557', 'NS_CLIENT', 'link-203');">NS_CLIENT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1173"></a><tt class="py-lineno">1173</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-558" class="py-name"><a title="spade.xmpp.dispatcher.Dispatcher" class="py-name" href="#" onclick="return doclink('link-558', 'Dispatcher', 'link-104');">Dispatcher</a></tt><tt class="py-op">.</tt><tt id="link-559" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-559', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-name">p</tt><tt class="py-op">,</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1174"></a><tt class="py-lineno">1174</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1175"></a><tt class="py-lineno">1175</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_DEBUG</tt><tt class="py-op">.</tt><tt class="py-name">active</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt class="py-string">"Twice session UNregistration!"</tt> </tt>
<a name="L1176"></a><tt class="py-lineno">1176</tt>  <tt class="py-line">                <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L1177"></a><tt class="py-lineno">1177</tt>  <tt class="py-line">            <tt class="py-comment">#s._registered=0</tt> </tt>
<a name="L1178"></a><tt class="py-lineno">1178</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-560" class="py-name"><a title="spade.xmppd.xmppd.multisession_manager" class="py-name" href="#" onclick="return doclink('link-560', 'multisession_manager', 'link-459');">multisession_manager</a></tt><tt class="py-op">.</tt><tt id="link-561" class="py-name"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-561', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1179"></a><tt class="py-lineno">1179</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1180"></a><tt class="py-lineno">1180</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L1181"></a><tt class="py-lineno">1181</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-string">'sockpoll'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1182"></a><tt class="py-lineno">1182</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">.</tt><tt id="link-562" class="py-name"><a title="spade.xmpp.features.unregister
spade.xmppd.xmppd.fake_select.poll.unregister" class="py-name" href="#" onclick="return doclink('link-562', 'unregister', 'link-296');">unregister</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1183"></a><tt class="py-lineno">1183</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-563" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-563', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt> <tt class="py-keyword">and</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-564" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-564', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1184"></a><tt class="py-lineno">1184</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-565" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-565', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt id="link-566" class="py-name"><a title="spade.dblite.Base.delete
spade.xmppd.modules.db_fake.DB.delete" class="py-name" href="#" onclick="return doclink('link-566', 'delete', 'link-298');">delete</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-comment"># Kill libevent event</tt> </tt>
<a name="L1185"></a><tt class="py-lineno">1185</tt>  <tt class="py-line">            <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">leventobjs</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-567" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-567', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> </tt>
<a name="L1186"></a><tt class="py-lineno">1186</tt>  <tt class="py-line"> </tt>
<a name="L1187"></a><tt class="py-lineno">1187</tt>  <tt class="py-line">        <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-568" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-568', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt> <tt class="py-comment"># Destroy the record</tt> </tt>
<a name="L1188"></a><tt class="py-lineno">1188</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-569" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-569', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_NODE_UNREGISTERED</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-op">{</tt><tt class="py-string">'fileno'</tt><tt class="py-op">:</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-570" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-570', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'raw'</tt><tt class="py-op">:</tt><tt class="py-name">s</tt><tt class="py-op">}</tt><tt class="py-op">)</tt> </tt>
<a name="L1189"></a><tt class="py-lineno">1189</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">SESS_LOCK</tt><tt class="py-op">.</tt><tt class="py-name">release</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1190"></a><tt class="py-lineno">1190</tt>  <tt class="py-line"> </tt>
<a name="Server.activatesession"></a><div id="Server.activatesession-def"><a name="L1191"></a><tt class="py-lineno">1191</tt> <a class="py-toggle" href="#" id="Server.activatesession-toggle" onclick="return toggle('Server.activatesession');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#activatesession">activatesession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">s</tt><tt class="py-op">,</tt><tt class="py-param">peer</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.activatesession-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.activatesession-expanded"><a name="L1192"></a><tt class="py-lineno">1192</tt>  <tt class="py-line">        <tt class="py-comment">#print "### TRYING TO ACTIVATE SESSION %s WITH PEER %s"%(str(s),str(peer))</tt> </tt>
<a name="L1193"></a><tt class="py-lineno">1193</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1194"></a><tt class="py-lineno">1194</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">peer</tt><tt class="py-op">:</tt> <tt class="py-name">peer</tt><tt class="py-op">=</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt> </tt>
<a name="L1195"></a><tt class="py-lineno">1195</tt>  <tt class="py-line">                <tt class="py-name">alt_s</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-571" class="py-name" targets="Method spade.xmppd.xmppd.Server.getsession()=spade.xmppd.xmppd.Server-class.html#getsession"><a title="spade.xmppd.xmppd.Server.getsession" class="py-name" href="#" onclick="return doclink('link-571', 'getsession', 'link-571');">getsession</a></tt><tt class="py-op">(</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt> </tt>
<a name="L1196"></a><tt class="py-lineno">1196</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">s</tt><tt class="py-op">==</tt><tt class="py-name">alt_s</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L1197"></a><tt class="py-lineno">1197</tt>  <tt class="py-line">                <tt class="py-keyword">elif</tt> <tt class="py-name">alt_s</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-572" class="py-name"><a title="spade.xmppd.xmppd.Server.deactivatesession" class="py-name" href="#" onclick="return doclink('link-572', 'deactivatesession', 'link-163');">deactivatesession</a></tt><tt class="py-op">(</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt> </tt>
<a name="L1198"></a><tt class="py-lineno">1198</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">routes</tt><tt class="py-op">[</tt><tt class="py-name">peer</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">s</tt> </tt>
<a name="L1199"></a><tt class="py-lineno">1199</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">Exception</tt><tt class="py-op">,</tt><tt id="link-573" class="py-name" targets="Variable spade.xmppd.modules.stream.e=spade.xmppd.modules.stream-module.html#e,Variable spade.xmppd.xmppd.e=spade.xmppd.xmppd-module.html#e"><a title="spade.xmppd.modules.stream.e
spade.xmppd.xmppd.e" class="py-name" href="#" onclick="return doclink('link-573', 'e', 'link-573');">e</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1200"></a><tt class="py-lineno">1200</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-string">"###########ERRORRRRRRRRR  "</tt><tt class="py-op">+</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt id="link-574" class="py-name"><a title="spade.xmppd.modules.stream.e
spade.xmppd.xmppd.e" class="py-name" href="#" onclick="return doclink('link-574', 'e', 'link-573');">e</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L1201"></a><tt class="py-lineno">1201</tt>  <tt class="py-line">        <tt class="py-comment">#print "### ACTIVATED SESSION %s WITH PEER %s"%(str(s),str(peer))</tt> </tt>
<a name="L1202"></a><tt class="py-lineno">1202</tt>  <tt class="py-line"> </tt>
<a name="Server.getsession"></a><div id="Server.getsession-def"><a name="L1203"></a><tt class="py-lineno">1203</tt> <a class="py-toggle" href="#" id="Server.getsession-toggle" onclick="return toggle('Server.getsession');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#getsession">getsession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">jid</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.getsession-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.getsession-expanded"><a name="L1204"></a><tt class="py-lineno">1204</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">routes</tt><tt class="py-op">[</tt><tt class="py-name">jid</tt><tt class="py-op">]</tt> </tt>
<a name="L1205"></a><tt class="py-lineno">1205</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">KeyError</tt><tt class="py-op">:</tt> <tt class="py-keyword">pass</tt> </tt>
</div><a name="L1206"></a><tt class="py-lineno">1206</tt>  <tt class="py-line"> </tt>
<a name="Server.deactivatesession"></a><div id="Server.deactivatesession-def"><a name="L1207"></a><tt class="py-lineno">1207</tt> <a class="py-toggle" href="#" id="Server.deactivatesession-toggle" onclick="return toggle('Server.deactivatesession');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#deactivatesession">deactivatesession</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">peer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.deactivatesession-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.deactivatesession-expanded"><a name="L1208"></a><tt class="py-lineno">1208</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-575" class="py-name"><a title="spade.xmppd.xmppd.Server.getsession" class="py-name" href="#" onclick="return doclink('link-575', 'getsession', 'link-571');">getsession</a></tt><tt class="py-op">(</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt> </tt>
<a name="L1209"></a><tt class="py-lineno">1209</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">routes</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">routes</tt><tt class="py-op">[</tt><tt class="py-name">peer</tt><tt class="py-op">]</tt> </tt>
<a name="L1210"></a><tt class="py-lineno">1210</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sisters</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sisters</tt><tt class="py-op">[</tt><tt class="py-name">peer</tt><tt class="py-op">]</tt> </tt>
<a name="L1211"></a><tt class="py-lineno">1211</tt>  <tt class="py-line">        <tt class="py-comment">#print "### TRYING TO DE-ACTIVATE SESSION OF PEER %s : %s"%(str(peer),str(s))</tt> </tt>
<a name="L1212"></a><tt class="py-lineno">1212</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">s</tt> </tt>
</div><a name="L1213"></a><tt class="py-lineno">1213</tt>  <tt class="py-line"> </tt>
<a name="Server.run"></a><div id="Server.run-def"><a name="L1214"></a><tt class="py-lineno">1214</tt> <a class="py-toggle" href="#" id="Server.run-toggle" onclick="return toggle('Server.run');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#run">run</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.run-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.run-expanded"><a name="L1215"></a><tt class="py-lineno">1215</tt>  <tt class="py-line">        <tt class="py-keyword">global</tt> <tt id="link-576" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-576', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> </tt>
<a name="L1216"></a><tt class="py-lineno">1216</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-string">'event'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-577" class="py-name"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-577', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt id="link-578" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-578', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">signal</tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-579" class="py-name"><a title="spade.xmppd.xmppd.Server._lib_out" class="py-name" href="#" onclick="return doclink('link-579', '_lib_out', 'link-377');">_lib_out</a></tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-580" class="py-name"><a title="spade.bdi.PlanList.add
spade.tbcbp.CaseDB.add" class="py-name" href="#" onclick="return doclink('link-580', 'add', 'link-353');">add</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1217"></a><tt class="py-lineno">1217</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">cmd_options</tt><tt class="py-op">[</tt><tt class="py-string">'select_enabled'</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1218"></a><tt class="py-lineno">1218</tt>  <tt class="py-line">            <tt class="py-keyword">while</tt> <tt id="link-581" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-581', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L1219"></a><tt class="py-lineno">1219</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-582" class="py-name" targets="Method spade.xmppd.xmppd.Server.select_handle()=spade.xmppd.xmppd.Server-class.html#select_handle"><a title="spade.xmppd.xmppd.Server.select_handle" class="py-name" href="#" onclick="return doclink('link-582', 'select_handle', 'link-582');">select_handle</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1220"></a><tt class="py-lineno">1220</tt>  <tt class="py-line"> </tt>
<a name="L1221"></a><tt class="py-lineno">1221</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-string">'event'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-583" class="py-name"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-583', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt id="link-584" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-584', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt id="link-585" class="py-name"><a title="spade.MTP.MTP.dispatch
spade.xmpp.dispatcher.Dispatcher.dispatch
spade.xmpp.simplexml.NodeBuilder.dispatch
spade.xmppd.modules.muc.MUC.dispatch
spade.xmppd.modules.muc.Room.dispatch
spade.xmppd.modules.wq.Group.dispatch
spade.xmppd.modules.wq.WQ.dispatch
spade.xmppd.xmppd.Session.dispatch" class="py-name" href="#" onclick="return doclink('link-585', 'dispatch', 'link-134');">dispatch</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1222"></a><tt class="py-lineno">1222</tt>  <tt class="py-line"> </tt>
<a name="L1223"></a><tt class="py-lineno">1223</tt>  <tt class="py-line"> </tt>
<a name="Server.libevent_read_callback"></a><div id="Server.libevent_read_callback-def"><a name="L1224"></a><tt class="py-lineno">1224</tt> <a class="py-toggle" href="#" id="Server.libevent_read_callback-toggle" onclick="return toggle('Server.libevent_read_callback');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#libevent_read_callback">libevent_read_callback</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt> <tt class="py-param">ev</tt><tt class="py-op">,</tt> <tt class="py-param">fd</tt><tt class="py-op">,</tt> <tt class="py-param">evtype</tt><tt class="py-op">,</tt> <tt class="py-param">pipe</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.libevent_read_callback-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.libevent_read_callback-expanded"><a name="L1225"></a><tt class="py-lineno">1225</tt>  <tt class="py-line">        <tt class="py-docstring">"Functions as a callback for libevent pased "</tt> </tt>
<a name="L1226"></a><tt class="py-lineno">1226</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-586" class="py-name" targets="Method spade.xmppd.xmppd.Server._socket_handler()=spade.xmppd.xmppd.Server-class.html#_socket_handler"><a title="spade.xmppd.xmppd.Server._socket_handler" class="py-name" href="#" onclick="return doclink('link-586', '_socket_handler', 'link-586');">_socket_handler</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt class="py-name">fd</tt><tt class="py-op">.</tt><tt id="link-587" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-587', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'libevent'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1227"></a><tt class="py-lineno">1227</tt>  <tt class="py-line"> </tt>
<a name="L1228"></a><tt class="py-lineno">1228</tt>  <tt class="py-line"> </tt>
<a name="Server.select_handle"></a><div id="Server.select_handle-def"><a name="L1229"></a><tt class="py-lineno">1229</tt> <a class="py-toggle" href="#" id="Server.select_handle-toggle" onclick="return toggle('Server.select_handle');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#select_handle">select_handle</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.select_handle-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.select_handle-expanded"><a name="L1230"></a><tt class="py-lineno">1230</tt>  <tt class="py-line">        <tt class="py-docstring">"Handles select-based socket handling"</tt> </tt>
<a name="L1231"></a><tt class="py-lineno">1231</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-588" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-588', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">,</tt><tt class="py-name">ev</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockpoll</tt><tt class="py-op">.</tt><tt id="link-589" class="py-name"><a title="spade.xmppd.xmppd.fake_select.poll
spade.xmppd.xmppd.fake_select.poll.poll" class="py-name" href="#" onclick="return doclink('link-589', 'poll', 'link-21');">poll</a></tt><tt class="py-op">(</tt><tt class="py-number">1000</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1232"></a><tt class="py-lineno">1232</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-590" class="py-name"><a title="spade.xmppd.xmppd.Server._socket_handler" class="py-name" href="#" onclick="return doclink('link-590', '_socket_handler', 'link-586');">_socket_handler</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt id="link-591" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-591', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-string">'select'</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1233"></a><tt class="py-lineno">1233</tt>  <tt class="py-line"> </tt>
<a name="Server._socket_handler"></a><div id="Server._socket_handler-def"><a name="L1234"></a><tt class="py-lineno">1234</tt> <a class="py-toggle" href="#" id="Server._socket_handler-toggle" onclick="return toggle('Server._socket_handler');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#_socket_handler">_socket_handler</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">sock</tt><tt class="py-op">,</tt><tt class="py-param">mode</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server._socket_handler-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server._socket_handler-expanded"><a name="L1235"></a><tt class="py-lineno">1235</tt>  <tt class="py-line">        <tt class="py-docstring">"Accepts incoming sockets and ultimately handles the core-routing of packets"</tt> </tt>
<a name="L1236"></a><tt class="py-lineno">1236</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">sock</tt><tt class="py-op">,</tt><tt id="link-592" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-592', 'Session', 'link-396');">Session</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1237"></a><tt class="py-lineno">1237</tt>  <tt class="py-line">            <tt class="py-name">sess</tt><tt class="py-op">=</tt><tt class="py-name">sock</tt> </tt>
<a name="L1238"></a><tt class="py-lineno">1238</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1239"></a><tt class="py-lineno">1239</tt>  <tt class="py-line">                <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-593" class="py-name"><a title="spade.xmpp.session.Session.receive
spade.xmpp.transports.TCPsocket.receive
spade.xmppd.xmppd.RPC_Client.receive
spade.xmppd.xmppd.Session.receive" class="py-name" href="#" onclick="return doclink('link-593', 'receive', 'link-397');">receive</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1240"></a><tt class="py-lineno">1240</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">IOError</tt><tt class="py-op">:</tt> <tt class="py-comment"># client closed the connection</tt> </tt>
<a name="L1241"></a><tt class="py-lineno">1241</tt>  <tt class="py-line">                <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-594" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-594', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1242"></a><tt class="py-lineno">1242</tt>  <tt class="py-line">                <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-string">''</tt> </tt>
<a name="L1243"></a><tt class="py-lineno">1243</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">data</tt><tt class="py-op">:</tt> </tt>
<a name="L1244"></a><tt class="py-lineno">1244</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1245"></a><tt class="py-lineno">1245</tt>  <tt class="py-line">                    <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt class="py-name">Parse</tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt> </tt>
<a name="L1246"></a><tt class="py-lineno">1246</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt> <tt id="link-595" class="py-name"><a title="spade.xmpp.simplexml" class="py-name" href="#" onclick="return doclink('link-595', 'simplexml', 'link-130');">simplexml</a></tt><tt class="py-op">.</tt><tt class="py-name">xml</tt><tt class="py-op">.</tt><tt class="py-name">parsers</tt><tt class="py-op">.</tt><tt class="py-name">expat</tt><tt class="py-op">.</tt><tt class="py-name">ExpatError</tt><tt class="py-op">:</tt> </tt>
<a name="L1247"></a><tt class="py-lineno">1247</tt>  <tt class="py-line">                    <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-596" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-596', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-597" class="py-name"><a title="spade.Agent.STREAM_XML_NOT_WELL_FORMED
spade.MTP.STREAM_XML_NOT_WELL_FORMED
spade.Organization.STREAM_XML_NOT_WELL_FORMED
spade.Organization_new.STREAM_XML_NOT_WELL_FORMED
spade.Unit.STREAM_XML_NOT_WELL_FORMED
spade.Unit_new.STREAM_XML_NOT_WELL_FORMED
spade.pubsub.STREAM_XML_NOT_WELL_FORMED
spade.socialnetwork.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.auth.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.browser.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.commands.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.dispatcher.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.features.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.filetransfer.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.protocol.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.roster.STREAM_XML_NOT_WELL_FORMED
spade.xmpp.transports.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.config.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.db_fake.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.dialback.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.jep0077.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.jep0078.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.message.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.muc.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.oob.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.pubsub.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.roster.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.router.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.stream.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.webadmin.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.modules.wq.STREAM_XML_NOT_WELL_FORMED
spade.xmppd.xmppd.STREAM_XML_NOT_WELL_FORMED" class="py-name" href="#" onclick="return doclink('link-597', 'STREAM_XML_NOT_WELL_FORMED', 'link-402');">STREAM_XML_NOT_WELL_FORMED</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1248"></a><tt class="py-lineno">1248</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">time</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">-</tt> <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt class="py-name">last_seen</tt> <tt class="py-op">&gt;=</tt> <tt class="py-number">60.0</tt><tt class="py-op">:</tt> </tt>
<a name="L1249"></a><tt class="py-lineno">1249</tt>  <tt class="py-line">                <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-598" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-598', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1250"></a><tt class="py-lineno">1250</tt>  <tt class="py-line"> </tt>
<a name="L1251"></a><tt class="py-lineno">1251</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">sock</tt><tt class="py-op">,</tt><tt id="link-599" class="py-name" targets="Class spade.xmppd.xmppd.RPC_Client=spade.xmppd.xmppd.RPC_Client-class.html"><a title="spade.xmppd.xmppd.RPC_Client" class="py-name" href="#" onclick="return doclink('link-599', 'RPC_Client', 'link-599');">RPC_Client</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1252"></a><tt class="py-lineno">1252</tt>  <tt class="py-line">            <tt class="py-name">sess</tt><tt class="py-op">=</tt><tt class="py-name">sock</tt> </tt>
<a name="L1253"></a><tt class="py-lineno">1253</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1254"></a><tt class="py-lineno">1254</tt>  <tt class="py-line">                <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-600" class="py-name"><a title="spade.xmpp.session.Session.receive
spade.xmpp.transports.TCPsocket.receive
spade.xmppd.xmppd.RPC_Client.receive
spade.xmppd.xmppd.Session.receive" class="py-name" href="#" onclick="return doclink('link-600', 'receive', 'link-397');">receive</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1255"></a><tt class="py-lineno">1255</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">IOError</tt><tt class="py-op">:</tt> <tt class="py-comment"># client closed the connection</tt> </tt>
<a name="L1256"></a><tt class="py-lineno">1256</tt>  <tt class="py-line">                <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-601" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.terminate" class="py-name" href="#" onclick="return doclink('link-601', 'terminate', 'link-364');">terminate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1257"></a><tt class="py-lineno">1257</tt>  <tt class="py-line">                <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-string">''</tt> </tt>
<a name="L1258"></a><tt class="py-lineno">1258</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">data</tt><tt class="py-op">:</tt> </tt>
<a name="L1259"></a><tt class="py-lineno">1259</tt>  <tt class="py-line">                <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-602" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.RPC_handler" class="py-name" href="#" onclick="return doclink('link-602', 'RPC_handler', 'link-356');">RPC_handler</a></tt><tt class="py-op">(</tt><tt class="py-name">data</tt><tt class="py-op">)</tt> </tt>
<a name="L1260"></a><tt class="py-lineno">1260</tt>  <tt class="py-line"> </tt>
<a name="L1261"></a><tt class="py-lineno">1261</tt>  <tt class="py-line">        <tt class="py-keyword">elif</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">sock</tt><tt class="py-op">,</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">socket</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1262"></a><tt class="py-lineno">1262</tt>  <tt class="py-line">            <tt class="py-name">conn</tt><tt class="py-op">,</tt> <tt class="py-name">addr</tt> <tt class="py-op">=</tt> <tt class="py-name">sock</tt><tt class="py-op">.</tt><tt class="py-name">accept</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1263"></a><tt class="py-lineno">1263</tt>  <tt class="py-line">            <tt class="py-name">host</tt><tt class="py-op">,</tt><tt class="py-name">port</tt><tt class="py-op">=</tt><tt class="py-name">sock</tt><tt class="py-op">.</tt><tt id="link-603" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.getsockname" class="py-name" href="#" onclick="return doclink('link-603', 'getsockname', 'link-370');">getsockname</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1264"></a><tt class="py-lineno">1264</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">port</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5222'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5223'</tt><tt class="py-op">]</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L1265"></a><tt class="py-lineno">1265</tt>  <tt class="py-line">                <tt class="py-name">sess</tt><tt class="py-op">=</tt><tt id="link-604" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-604', 'Session', 'link-396');">Session</a></tt><tt class="py-op">(</tt><tt class="py-name">conn</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt id="link-605" class="py-name"><a title="spade.Agent.NS_CLIENT
spade.MTP.NS_CLIENT
spade.Organization.NS_CLIENT
spade.Organization_new.NS_CLIENT
spade.Unit.NS_CLIENT
spade.Unit_new.NS_CLIENT
spade.pubsub.NS_CLIENT
spade.socialnetwork.NS_CLIENT
spade.xmpp.NS_CLIENT
spade.xmpp.auth.NS_CLIENT
spade.xmpp.browser.NS_CLIENT
spade.xmpp.commands.NS_CLIENT
spade.xmpp.dispatcher.NS_CLIENT
spade.xmpp.features.NS_CLIENT
spade.xmpp.filetransfer.NS_CLIENT
spade.xmpp.protocol.NS_CLIENT
spade.xmpp.roster.NS_CLIENT
spade.xmpp.transports.NS_CLIENT
spade.xmppd.modules.config.NS_CLIENT
spade.xmppd.modules.db_fake.NS_CLIENT
spade.xmppd.modules.dialback.NS_CLIENT
spade.xmppd.modules.jep0077.NS_CLIENT
spade.xmppd.modules.jep0078.NS_CLIENT
spade.xmppd.modules.message.NS_CLIENT
spade.xmppd.modules.muc.NS_CLIENT
spade.xmppd.modules.oob.NS_CLIENT
spade.xmppd.modules.pubsub.NS_CLIENT
spade.xmppd.modules.roster.NS_CLIENT
spade.xmppd.modules.router.NS_CLIENT
spade.xmppd.modules.stream.NS_CLIENT
spade.xmppd.modules.webadmin.NS_CLIENT
spade.xmppd.modules.wq.NS_CLIENT
spade.xmppd.xmppd.NS_CLIENT" class="py-name" href="#" onclick="return doclink('link-605', 'NS_CLIENT', 'link-203');">NS_CLIENT</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1266"></a><tt class="py-lineno">1266</tt>  <tt class="py-line"><tt class="py-comment">#                    self.DEBUG('server','%s:%s is a client!'%(host,port),'info')</tt> </tt>
<a name="L1267"></a><tt class="py-lineno">1267</tt>  <tt class="py-line"> </tt>
<a name="L1268"></a><tt class="py-lineno">1268</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">port</tt> <tt class="py-op">==</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_8000'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L1269"></a><tt class="py-lineno">1269</tt>  <tt class="py-line">                <tt class="py-name">sess</tt> <tt class="py-op">=</tt> <tt id="link-606" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client" class="py-name" href="#" onclick="return doclink('link-606', 'RPC_Client', 'link-599');">RPC_Client</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt class="py-name">conn</tt><tt class="py-op">,</tt><tt class="py-name">addr</tt><tt class="py-op">,</tt><tt class="py-name">host</tt><tt class="py-op">,</tt><tt class="py-name">port</tt><tt class="py-op">)</tt> </tt>
<a name="L1270"></a><tt class="py-lineno">1270</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-607" class="py-name"><a title="spade.xmppd.xmppd.Server.registersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession
spade.xmppd.xmppd.multisession_manager.registersession" class="py-name" href="#" onclick="return doclink('link-607', 'registersession', 'link-387');">registersession</a></tt><tt class="py-op">(</tt><tt class="py-name">sess</tt><tt class="py-op">)</tt> </tt>
<a name="L1271"></a><tt class="py-lineno">1271</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1272"></a><tt class="py-lineno">1272</tt>  <tt class="py-line">                    <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-608" class="py-name"><a title="spade.xmpp.session.Session.receive
spade.xmpp.transports.TCPsocket.receive
spade.xmppd.xmppd.RPC_Client.receive
spade.xmppd.xmppd.Session.receive" class="py-name" href="#" onclick="return doclink('link-608', 'receive', 'link-397');">receive</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1273"></a><tt class="py-lineno">1273</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt> <tt class="py-name">IOError</tt><tt class="py-op">:</tt> <tt class="py-comment"># client closed the connection</tt> </tt>
<a name="L1274"></a><tt class="py-lineno">1274</tt>  <tt class="py-line">                    <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-609" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.terminate" class="py-name" href="#" onclick="return doclink('link-609', 'terminate', 'link-364');">terminate</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1275"></a><tt class="py-lineno">1275</tt>  <tt class="py-line">                    <tt class="py-name">data</tt><tt class="py-op">=</tt><tt class="py-string">''</tt> </tt>
<a name="L1276"></a><tt class="py-lineno">1276</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">data</tt><tt class="py-op">:</tt> <tt class="py-name">sess</tt><tt class="py-op">.</tt><tt id="link-610" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-610', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt class="py-string">""</tt><tt class="py-op">)</tt> <tt class="py-comment">#let it know that we're ready to accept</tt> </tt>
<a name="L1277"></a><tt class="py-lineno">1277</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> <tt class="py-name">True</tt> </tt>
<a name="L1278"></a><tt class="py-lineno">1278</tt>  <tt class="py-line"> </tt>
<a name="L1279"></a><tt class="py-lineno">1279</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1280"></a><tt class="py-lineno">1280</tt>  <tt class="py-line"><tt class="py-comment">#                    self.DEBUG('server','%s:%s is a server!'%(host,port),'info')</tt> </tt>
<a name="L1281"></a><tt class="py-lineno">1281</tt>  <tt class="py-line">                <tt class="py-name">sess</tt><tt class="py-op">=</tt><tt id="link-611" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-611', 'Session', 'link-396');">Session</a></tt><tt class="py-op">(</tt><tt class="py-name">conn</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt id="link-612" class="py-name"><a title="spade.Agent.NS_SERVER
spade.MTP.NS_SERVER
spade.Organization.NS_SERVER
spade.Organization_new.NS_SERVER
spade.Unit.NS_SERVER
spade.Unit_new.NS_SERVER
spade.pubsub.NS_SERVER
spade.socialnetwork.NS_SERVER
spade.xmpp.NS_SERVER
spade.xmpp.auth.NS_SERVER
spade.xmpp.browser.NS_SERVER
spade.xmpp.commands.NS_SERVER
spade.xmpp.dispatcher.NS_SERVER
spade.xmpp.features.NS_SERVER
spade.xmpp.filetransfer.NS_SERVER
spade.xmpp.protocol.NS_SERVER
spade.xmpp.roster.NS_SERVER
spade.xmpp.transports.NS_SERVER
spade.xmppd.modules.config.NS_SERVER
spade.xmppd.modules.db_fake.NS_SERVER
spade.xmppd.modules.dialback.NS_SERVER
spade.xmppd.modules.jep0077.NS_SERVER
spade.xmppd.modules.jep0078.NS_SERVER
spade.xmppd.modules.message.NS_SERVER
spade.xmppd.modules.muc.NS_SERVER
spade.xmppd.modules.oob.NS_SERVER
spade.xmppd.modules.pubsub.NS_SERVER
spade.xmppd.modules.roster.NS_SERVER
spade.xmppd.modules.router.NS_SERVER
spade.xmppd.modules.stream.NS_SERVER
spade.xmppd.modules.webadmin.NS_SERVER
spade.xmppd.modules.wq.NS_SERVER
spade.xmppd.xmppd.NS_SERVER" class="py-name" href="#" onclick="return doclink('link-612', 'NS_SERVER', 'link-206');">NS_SERVER</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1282"></a><tt class="py-lineno">1282</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-613" class="py-name"><a title="spade.xmppd.xmppd.Server.registersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession
spade.xmppd.xmppd.multisession_manager.registersession" class="py-name" href="#" onclick="return doclink('link-613', 'registersession', 'link-387');">registersession</a></tt><tt class="py-op">(</tt><tt class="py-name">sess</tt><tt class="py-op">)</tt> </tt>
<a name="L1283"></a><tt class="py-lineno">1283</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">port</tt><tt class="py-op">==</tt><tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-string">'PORT_5223'</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L1284"></a><tt class="py-lineno">1284</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-614" class="py-name" targets="Class spade.xmpp.transports.TLS=spade.xmpp.transports.TLS-class.html,Class spade.xmppd.modules.stream.TLS=spade.xmppd.modules.stream.TLS-class.html"><a title="spade.xmpp.transports.TLS
spade.xmppd.modules.stream.TLS" class="py-name" href="#" onclick="return doclink('link-614', 'TLS', 'link-614');">TLS</a></tt><tt class="py-op">.</tt><tt id="link-615" class="py-name" targets="Method spade.xmppd.modules.stream.TLS.startservertls()=spade.xmppd.modules.stream.TLS-class.html#startservertls"><a title="spade.xmppd.modules.stream.TLS.startservertls" class="py-name" href="#" onclick="return doclink('link-615', 'startservertls', 'link-615');">startservertls</a></tt><tt class="py-op">(</tt><tt class="py-name">sess</tt><tt class="py-op">)</tt> </tt>
<a name="L1285"></a><tt class="py-lineno">1285</tt>  <tt class="py-line"> </tt>
<a name="L1286"></a><tt class="py-lineno">1286</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-keyword">raise</tt> <tt class="py-string">"Unknown instance type: %s"</tt><tt class="py-op">%</tt><tt class="py-name">sock</tt> </tt>
</div><a name="L1287"></a><tt class="py-lineno">1287</tt>  <tt class="py-line"> </tt>
<a name="Server._lib_out"></a><div id="Server._lib_out-def"><a name="L1288"></a><tt class="py-lineno">1288</tt> <a class="py-toggle" href="#" id="Server._lib_out-toggle" onclick="return toggle('Server._lib_out');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#_lib_out">_lib_out</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server._lib_out-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server._lib_out-expanded"><a name="L1289"></a><tt class="py-lineno">1289</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt><tt class="py-op">,</tt><tt id="link-616" class="py-name"><a title="spade.xmppd.xmppd.Socker_client" class="py-name" href="#" onclick="return doclink('link-616', 'Socker_client', 'link-480');">Socker_client</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_socker</tt><tt class="py-op">.</tt><tt id="link-617" class="py-name"><a title="spade.Organization.Organization.destroy
spade.Organization_new.Organization_new.destroy
spade.Unit.Unit.destroy
spade.Unit_new.Unit_new.destroy
spade.xmpp.simplexml.NodeBuilder.destroy
spade.xmppd.xmppd.Socker_client.destroy
spade.xmppd.xmppd.multisession_manager.destroy" class="py-name" href="#" onclick="return doclink('link-617', 'destroy', 'link-332');">destroy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1290"></a><tt class="py-lineno">1290</tt>  <tt class="py-line">        <tt id="link-618" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-618', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">abort</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1291"></a><tt class="py-lineno">1291</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-619" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-619', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_SHUTDOWN_MSG</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1292"></a><tt class="py-lineno">1292</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-620" class="py-name"><a title="spade.spade_backend.SpadeBackend.shutdown
spade.xmppd.xmppd.Server.shutdown" class="py-name" href="#" onclick="return doclink('link-620', 'shutdown', 'link-449');">shutdown</a></tt><tt class="py-op">(</tt><tt id="link-621" class="py-name"><a title="spade.Agent.STREAM_SYSTEM_SHUTDOWN
spade.MTP.STREAM_SYSTEM_SHUTDOWN
spade.Organization.STREAM_SYSTEM_SHUTDOWN
spade.Organization_new.STREAM_SYSTEM_SHUTDOWN
spade.Unit.STREAM_SYSTEM_SHUTDOWN
spade.Unit_new.STREAM_SYSTEM_SHUTDOWN
spade.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.socialnetwork.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.auth.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.browser.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.commands.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.dispatcher.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.features.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.filetransfer.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.protocol.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.transports.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.config.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.db_fake.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.dialback.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0077.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0078.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.message.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.muc.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.oob.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.router.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.stream.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.webadmin.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.wq.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.xmppd.STREAM_SYSTEM_SHUTDOWN" class="py-name" href="#" onclick="return doclink('link-621', 'STREAM_SYSTEM_SHUTDOWN', 'link-450');">STREAM_SYSTEM_SHUTDOWN</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L1293"></a><tt class="py-lineno">1293</tt>  <tt class="py-line"> </tt>
<a name="Server.shutdown"></a><div id="Server.shutdown-def"><a name="L1294"></a><tt class="py-lineno">1294</tt> <a class="py-toggle" href="#" id="Server.shutdown-toggle" onclick="return toggle('Server.shutdown');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#shutdown">shutdown</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">reason</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.shutdown-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.shutdown-expanded"><a name="L1295"></a><tt class="py-lineno">1295</tt>  <tt class="py-line">        <tt class="py-keyword">global</tt> <tt id="link-622" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-622', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> </tt>
<a name="L1296"></a><tt class="py-lineno">1296</tt>  <tt class="py-line">        <tt id="link-623" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-623', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L1297"></a><tt class="py-lineno">1297</tt>  <tt class="py-line">        <tt class="py-name">socklist</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">.</tt><tt id="link-624" class="py-name"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-624', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1298"></a><tt class="py-lineno">1298</tt>  <tt class="py-line">        <tt class="py-keyword">for</tt> <tt id="link-625" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-625', 'fileno', 'link-19');">fileno</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">socklist</tt><tt class="py-op">:</tt> </tt>
<a name="L1299"></a><tt class="py-lineno">1299</tt>  <tt class="py-line">            <tt class="py-name">s</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sockets</tt><tt class="py-op">[</tt><tt id="link-626" class="py-name"><a title="spade.xmppd.xmppd.RPC_Client.fileno
spade.xmppd.xmppd.Session.fileno" class="py-name" href="#" onclick="return doclink('link-626', 'fileno', 'link-19');">fileno</a></tt><tt class="py-op">]</tt> </tt>
<a name="L1300"></a><tt class="py-lineno">1300</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">socket</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1301"></a><tt class="py-lineno">1301</tt>  <tt class="py-line">                <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1302"></a><tt class="py-lineno">1302</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-627" class="py-name"><a title="spade.xmppd.xmppd.Server.unregistersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.unregistersession
spade.xmppd.xmppd.multisession_manager.unregistersession" class="py-name" href="#" onclick="return doclink('link-627', 'unregistersession', 'link-297');">unregistersession</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1303"></a><tt class="py-lineno">1303</tt>  <tt class="py-line">                    <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-628" class="py-name"><a title="spade.spade_backend.SpadeBackend.shutdown
spade.xmppd.xmppd.Server.shutdown" class="py-name" href="#" onclick="return doclink('link-628', 'shutdown', 'link-449');">shutdown</a></tt><tt class="py-op">(</tt><tt class="py-number">2</tt><tt class="py-op">)</tt> </tt>
<a name="L1304"></a><tt class="py-lineno">1304</tt>  <tt class="py-line">                    <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1305"></a><tt class="py-lineno">1305</tt>  <tt class="py-line">                <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L1306"></a><tt class="py-lineno">1306</tt>  <tt class="py-line">                    <tt class="py-keyword">pass</tt> </tt>
<a name="L1307"></a><tt class="py-lineno">1307</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">isinstance</tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt id="link-629" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-629', 'Session', 'link-396');">Session</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-630" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-630', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt class="py-name">reason</tt><tt class="py-op">)</tt> </tt>
<a name="L1308"></a><tt class="py-lineno">1308</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1309"></a><tt class="py-lineno">1309</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-631" class="py-name"><a title="spade.xmppd.xmppd.multisession_manager" class="py-name" href="#" onclick="return doclink('link-631', 'multisession_manager', 'link-459');">multisession_manager</a></tt><tt class="py-op">.</tt><tt id="link-632" class="py-name"><a title="spade.Organization.Organization.destroy
spade.Organization_new.Organization_new.destroy
spade.Unit.Unit.destroy
spade.Unit_new.Unit_new.destroy
spade.xmpp.simplexml.NodeBuilder.destroy
spade.xmppd.xmppd.Socker_client.destroy
spade.xmppd.xmppd.multisession_manager.destroy" class="py-name" href="#" onclick="return doclink('link-632', 'destroy', 'link-332');">destroy</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1310"></a><tt class="py-lineno">1310</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L1311"></a><tt class="py-lineno">1311</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-633" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-633', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">"Could not destroy multisession manager"</tt><tt class="py-op">,</tt><tt class="py-string">"warn"</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1312"></a><tt class="py-lineno">1312</tt>  <tt class="py-line"> </tt>
<a name="Server.S2S"></a><div id="Server.S2S-def"><a name="L1313"></a><tt class="py-lineno">1313</tt> <a class="py-toggle" href="#" id="Server.S2S-toggle" onclick="return toggle('Server.S2S');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#S2S">S2S</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">ourname</tt><tt class="py-op">,</tt><tt class="py-param">domain</tt><tt class="py-op">,</tt><tt class="py-param">slave_session</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">port</tt><tt class="py-op">=</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-param">route_everything</tt><tt class="py-op">=</tt><tt class="py-name">False</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.S2S-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.S2S-expanded"><a name="L1314"></a><tt class="py-lineno">1314</tt>  <tt class="py-line">        <tt class="py-comment">### THIS IS FUCKING DANGEROUS!!!!!</tt> </tt>
<a name="L1315"></a><tt class="py-lineno">1315</tt>  <tt class="py-line">        <tt class="py-comment">#s = self.getsession(domain)</tt> </tt>
<a name="L1316"></a><tt class="py-lineno">1316</tt>  <tt class="py-line">        <tt class="py-comment">#if s: return s</tt> </tt>
<a name="L1317"></a><tt class="py-lineno">1317</tt>  <tt class="py-line">        <tt class="py-comment">### THIS IS FUCKING DANGEROUS!!!!!</tt> </tt>
<a name="L1318"></a><tt class="py-lineno">1318</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">=</tt><tt id="link-634" class="py-name"><a title="spade.wui.WUIHandler.Session
spade.xmpp.session.Session
spade.xmppd.modules.stream.Session
spade.xmppd.xmppd.Session" class="py-name" href="#" onclick="return doclink('link-634', 'Session', 'link-396');">Session</a></tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">socket</tt><tt class="py-op">(</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">AF_INET</tt><tt class="py-op">,</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">SOCK_STREAM</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">,</tt><tt id="link-635" class="py-name"><a title="spade.Agent.NS_SERVER
spade.MTP.NS_SERVER
spade.Organization.NS_SERVER
spade.Organization_new.NS_SERVER
spade.Unit.NS_SERVER
spade.Unit_new.NS_SERVER
spade.pubsub.NS_SERVER
spade.socialnetwork.NS_SERVER
spade.xmpp.NS_SERVER
spade.xmpp.auth.NS_SERVER
spade.xmpp.browser.NS_SERVER
spade.xmpp.commands.NS_SERVER
spade.xmpp.dispatcher.NS_SERVER
spade.xmpp.features.NS_SERVER
spade.xmpp.filetransfer.NS_SERVER
spade.xmpp.protocol.NS_SERVER
spade.xmpp.roster.NS_SERVER
spade.xmpp.transports.NS_SERVER
spade.xmppd.modules.config.NS_SERVER
spade.xmppd.modules.db_fake.NS_SERVER
spade.xmppd.modules.dialback.NS_SERVER
spade.xmppd.modules.jep0077.NS_SERVER
spade.xmppd.modules.jep0078.NS_SERVER
spade.xmppd.modules.message.NS_SERVER
spade.xmppd.modules.muc.NS_SERVER
spade.xmppd.modules.oob.NS_SERVER
spade.xmppd.modules.pubsub.NS_SERVER
spade.xmppd.modules.roster.NS_SERVER
spade.xmppd.modules.router.NS_SERVER
spade.xmppd.modules.stream.NS_SERVER
spade.xmppd.modules.webadmin.NS_SERVER
spade.xmppd.modules.wq.NS_SERVER
spade.xmppd.xmppd.NS_SERVER" class="py-name" href="#" onclick="return doclink('link-635', 'NS_SERVER', 'link-206');">NS_SERVER</a></tt><tt class="py-op">,</tt><tt class="py-name">domain</tt><tt class="py-op">)</tt> </tt>
<a name="L1319"></a><tt class="py-lineno">1319</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">slave_session</tt><tt class="py-op">=</tt><tt class="py-name">slave_session</tt> </tt>
<a name="L1320"></a><tt class="py-lineno">1320</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">route_everything</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">sisters</tt><tt class="py-op">[</tt><tt class="py-name">domain</tt><tt class="py-op">+</tt><tt class="py-string">'_'</tt><tt class="py-op">+</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">port</tt><tt class="py-op">)</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">s</tt> </tt>
<a name="L1321"></a><tt class="py-lineno">1321</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">ourname</tt><tt class="py-op">=</tt><tt class="py-name">ourname</tt> </tt>
<a name="L1322"></a><tt class="py-lineno">1322</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-636" class="py-name" targets="Method spade.xmppd.xmppd.Server.activatesession()=spade.xmppd.xmppd.Server-class.html#activatesession"><a title="spade.xmppd.xmppd.Server.activatesession" class="py-name" href="#" onclick="return doclink('link-636', 'activatesession', 'link-636');">activatesession</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1323"></a><tt class="py-lineno">1323</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-637" class="py-name" targets="Method spade.xmppd.xmppd.Server._connect_session()=spade.xmppd.xmppd.Server-class.html#_connect_session"><a title="spade.xmppd.xmppd.Server._connect_session" class="py-name" href="#" onclick="return doclink('link-637', '_connect_session', 'link-637');">_connect_session</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">,</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">port</tt><tt class="py-op">)</tt> </tt>
<a name="L1324"></a><tt class="py-lineno">1324</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">s</tt> </tt>
</div><a name="L1325"></a><tt class="py-lineno">1325</tt>  <tt class="py-line"> </tt>
<a name="Server._connect_session"></a><div id="Server._connect_session-def"><a name="L1326"></a><tt class="py-lineno">1326</tt> <a class="py-toggle" href="#" id="Server._connect_session-toggle" onclick="return toggle('Server._connect_session');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#_connect_session">_connect_session</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">session</tt><tt class="py-op">,</tt><tt class="py-param">domain</tt><tt class="py-op">,</tt><tt class="py-param">port</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server._connect_session-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server._connect_session-expanded"><a name="L1327"></a><tt class="py-lineno">1327</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt id="link-638" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-638', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-639" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-639', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_S2S_ATTEMPT_CONNECTION</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-op">{</tt><tt class="py-string">'server'</tt><tt class="py-op">:</tt><tt class="py-name">domain</tt><tt class="py-op">}</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1328"></a><tt class="py-lineno">1328</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">port</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1329"></a><tt class="py-lineno">1329</tt>  <tt class="py-line">            <tt class="py-name">port</tt> <tt class="py-op">=</tt> <tt class="py-number">5269</tt> </tt>
<a name="L1330"></a><tt class="py-lineno">1330</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1331"></a><tt class="py-lineno">1331</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> <tt class="py-string">"s2s port set"</tt><tt class="py-op">,</tt> <tt class="py-name">port</tt> </tt>
<a name="L1332"></a><tt class="py-lineno">1332</tt>  <tt class="py-line">        <tt class="py-keyword">try</tt><tt class="py-op">:</tt> <tt id="link-640" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-640', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt class="py-name">_sock</tt><tt class="py-op">.</tt><tt id="link-641" class="py-name" targets="Method spade.xmpp.client.Client.connect()=spade.xmpp.client.Client-class.html#connect,Method spade.xmpp.client.CommonClient.connect()=spade.xmpp.client.CommonClient-class.html#connect,Method spade.xmpp.client.Component.connect()=spade.xmpp.client.Component-class.html#connect,Method spade.xmpp.transports.HTTPPROXYsocket.connect()=spade.xmpp.transports.HTTPPROXYsocket-class.html#connect,Method spade.xmpp.transports.TCPsocket.connect()=spade.xmpp.transports.TCPsocket-class.html#connect"><a title="spade.xmpp.client.Client.connect
spade.xmpp.client.CommonClient.connect
spade.xmpp.client.Component.connect
spade.xmpp.transports.HTTPPROXYsocket.connect
spade.xmpp.transports.TCPsocket.connect" class="py-name" href="#" onclick="return doclink('link-641', 'connect', 'link-641');">connect</a></tt><tt class="py-op">(</tt><tt class="py-op">(</tt><tt class="py-name">domain</tt><tt class="py-op">,</tt><tt class="py-name">port</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1333"></a><tt class="py-lineno">1333</tt>  <tt class="py-line">        <tt class="py-keyword">except</tt> <tt class="py-name">socket</tt><tt class="py-op">.</tt><tt id="link-642" class="py-name"><a title="spade.xmpp.transports.error" class="py-name" href="#" onclick="return doclink('link-642', 'error', 'link-312');">error</a></tt><tt class="py-op">,</tt><tt class="py-name">err</tt><tt class="py-op">:</tt> </tt>
<a name="L1334"></a><tt class="py-lineno">1334</tt>  <tt class="py-line">            <tt class="py-keyword">print</tt> <tt id="link-643" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-643', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-644" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-644', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_S2S_THREAD_ERROR</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">err</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L1335"></a><tt class="py-lineno">1335</tt>  <tt class="py-line">            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">num_servers</tt> <tt class="py-op">-=</tt> <tt class="py-number">1</tt> </tt>
<a name="L1336"></a><tt class="py-lineno">1336</tt>  <tt class="py-line">            <tt id="link-645" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-645', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-646" class="py-name" targets="Method spade.xmpp.session.Session.set_session_state()=spade.xmpp.session.Session-class.html#set_session_state,Method spade.xmppd.xmppd.Session.set_session_state()=spade.xmppd.xmppd.Session-class.html#set_session_state"><a title="spade.xmpp.session.Session.set_session_state
spade.xmppd.xmppd.Session.set_session_state" class="py-name" href="#" onclick="return doclink('link-646', 'set_session_state', 'link-646');">set_session_state</a></tt><tt class="py-op">(</tt><tt id="link-647" class="py-name"><a title="spade.xmpp.session.SESSION_BOUND
spade.xmppd.modules.router.SESSION_BOUND
spade.xmppd.modules.stream.SESSION_BOUND
spade.xmppd.xmppd.SESSION_BOUND" class="py-name" href="#" onclick="return doclink('link-647', 'SESSION_BOUND', 'link-12');">SESSION_BOUND</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1337"></a><tt class="py-lineno">1337</tt>  <tt class="py-line">            <tt id="link-648" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-648', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-649" class="py-name"><a title="spade.xmpp.session.Session.set_socket_state
spade.xmppd.xmppd.Session.set_socket_state" class="py-name" href="#" onclick="return doclink('link-649', 'set_socket_state', 'link-150');">set_socket_state</a></tt><tt class="py-op">(</tt><tt id="link-650" class="py-name"><a title="spade.xmpp.session.SOCKET_DEAD
spade.xmppd.modules.stream.SOCKET_DEAD
spade.xmppd.xmppd.SOCKET_DEAD" class="py-name" href="#" onclick="return doclink('link-650', 'SOCKET_DEAD', 'link-5');">SOCKET_DEAD</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1338"></a><tt class="py-lineno">1338</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">err</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-name">errno</tt><tt class="py-op">.</tt><tt class="py-name">ETIMEDOUT</tt><tt class="py-op">:</tt> <tt class="py-name">failreason</tt><tt class="py-op">=</tt><tt id="link-651" class="py-name" targets="Variable spade.Agent.ERR_REMOTE_SERVER_TIMEOUT=spade.Agent-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.MTP.ERR_REMOTE_SERVER_TIMEOUT=spade.MTP-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.Organization.ERR_REMOTE_SERVER_TIMEOUT=spade.Organization-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.Organization_new.ERR_REMOTE_SERVER_TIMEOUT=spade.Organization_new-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.Unit.ERR_REMOTE_SERVER_TIMEOUT=spade.Unit-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.Unit_new.ERR_REMOTE_SERVER_TIMEOUT=spade.Unit_new-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.pubsub.ERR_REMOTE_SERVER_TIMEOUT=spade.pubsub-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.socialnetwork.ERR_REMOTE_SERVER_TIMEOUT=spade.socialnetwork-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.auth.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.auth-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.browser.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.browser-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.commands.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.commands-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.dispatcher.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.dispatcher-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.features.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.features-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.filetransfer.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.filetransfer-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.protocol.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.protocol-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.roster.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.roster-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmpp.transports.ERR_REMOTE_SERVER_TIMEOUT=spade.xmpp.transports-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.config.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.config-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.db_fake.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.db_fake-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.dialback.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.dialback-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.jep0077.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.jep0077-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.jep0078.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.jep0078-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.message.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.message-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.muc.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.muc-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.oob.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.oob-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.pubsub.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.pubsub-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.roster.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.roster-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.router.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.router-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.stream.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.stream-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.webadmin.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.webadmin-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.modules.wq.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.modules.wq-module.html#ERR_REMOTE_SERVER_TIMEOUT,Variable spade.xmppd.xmppd.ERR_REMOTE_SERVER_TIMEOUT=spade.xmppd.xmppd-module.html#ERR_REMOTE_SERVER_TIMEOUT"><a title="spade.Agent.ERR_REMOTE_SERVER_TIMEOUT
spade.MTP.ERR_REMOTE_SERVER_TIMEOUT
spade.Organization.ERR_REMOTE_SERVER_TIMEOUT
spade.Organization_new.ERR_REMOTE_SERVER_TIMEOUT
spade.Unit.ERR_REMOTE_SERVER_TIMEOUT
spade.Unit_new.ERR_REMOTE_SERVER_TIMEOUT
spade.pubsub.ERR_REMOTE_SERVER_TIMEOUT
spade.socialnetwork.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.auth.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.browser.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.commands.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.dispatcher.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.features.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.filetransfer.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.protocol.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.roster.ERR_REMOTE_SERVER_TIMEOUT
spade.xmpp.transports.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.config.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.db_fake.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.dialback.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.jep0077.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.jep0078.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.message.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.muc.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.oob.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.pubsub.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.roster.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.router.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.stream.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.webadmin.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.modules.wq.ERR_REMOTE_SERVER_TIMEOUT
spade.xmppd.xmppd.ERR_REMOTE_SERVER_TIMEOUT" class="py-name" href="#" onclick="return doclink('link-651', 'ERR_REMOTE_SERVER_TIMEOUT', 'link-651');">ERR_REMOTE_SERVER_TIMEOUT</a></tt> </tt>
<a name="L1339"></a><tt class="py-lineno">1339</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">err</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-name">socket</tt><tt class="py-op">.</tt><tt class="py-name">EAI_NONAME</tt><tt class="py-op">:</tt> <tt class="py-name">failreason</tt><tt class="py-op">=</tt><tt id="link-652" class="py-name" targets="Variable spade.Agent.ERR_REMOTE_SERVER_NOT_FOUND=spade.Agent-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.MTP.ERR_REMOTE_SERVER_NOT_FOUND=spade.MTP-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.Organization.ERR_REMOTE_SERVER_NOT_FOUND=spade.Organization-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.Organization_new.ERR_REMOTE_SERVER_NOT_FOUND=spade.Organization_new-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.Unit.ERR_REMOTE_SERVER_NOT_FOUND=spade.Unit-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.Unit_new.ERR_REMOTE_SERVER_NOT_FOUND=spade.Unit_new-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.pubsub.ERR_REMOTE_SERVER_NOT_FOUND=spade.pubsub-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.socialnetwork.ERR_REMOTE_SERVER_NOT_FOUND=spade.socialnetwork-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.auth.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.auth-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.browser.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.browser-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.commands.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.commands-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.dispatcher.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.dispatcher-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.features.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.features-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.filetransfer.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.filetransfer-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.protocol.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.protocol-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.roster.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.roster-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmpp.transports.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmpp.transports-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.config.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.config-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.db_fake.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.db_fake-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.dialback.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.dialback-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.jep0077.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.jep0077-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.jep0078.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.jep0078-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.message.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.message-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.muc.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.muc-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.oob.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.oob-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.pubsub.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.pubsub-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.roster.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.roster-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.router.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.router-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.stream.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.stream-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.webadmin.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.webadmin-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.modules.wq.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.modules.wq-module.html#ERR_REMOTE_SERVER_NOT_FOUND,Variable spade.xmppd.xmppd.ERR_REMOTE_SERVER_NOT_FOUND=spade.xmppd.xmppd-module.html#ERR_REMOTE_SERVER_NOT_FOUND"><a title="spade.Agent.ERR_REMOTE_SERVER_NOT_FOUND
spade.MTP.ERR_REMOTE_SERVER_NOT_FOUND
spade.Organization.ERR_REMOTE_SERVER_NOT_FOUND
spade.Organization_new.ERR_REMOTE_SERVER_NOT_FOUND
spade.Unit.ERR_REMOTE_SERVER_NOT_FOUND
spade.Unit_new.ERR_REMOTE_SERVER_NOT_FOUND
spade.pubsub.ERR_REMOTE_SERVER_NOT_FOUND
spade.socialnetwork.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.auth.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.browser.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.commands.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.dispatcher.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.features.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.filetransfer.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.protocol.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.roster.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmpp.transports.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.config.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.db_fake.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.dialback.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.jep0077.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.jep0078.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.message.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.muc.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.oob.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.pubsub.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.roster.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.router.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.stream.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.webadmin.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.modules.wq.ERR_REMOTE_SERVER_NOT_FOUND
spade.xmppd.xmppd.ERR_REMOTE_SERVER_NOT_FOUND" class="py-name" href="#" onclick="return doclink('link-652', 'ERR_REMOTE_SERVER_NOT_FOUND', 'link-652');">ERR_REMOTE_SERVER_NOT_FOUND</a></tt> </tt>
<a name="L1340"></a><tt class="py-lineno">1340</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">failreason</tt><tt class="py-op">=</tt><tt id="link-653" class="py-name" targets="Variable spade.Agent.ERR_UNDEFINED_CONDITION=spade.Agent-module.html#ERR_UNDEFINED_CONDITION,Variable spade.MTP.ERR_UNDEFINED_CONDITION=spade.MTP-module.html#ERR_UNDEFINED_CONDITION,Variable spade.Organization.ERR_UNDEFINED_CONDITION=spade.Organization-module.html#ERR_UNDEFINED_CONDITION,Variable spade.Organization_new.ERR_UNDEFINED_CONDITION=spade.Organization_new-module.html#ERR_UNDEFINED_CONDITION,Variable spade.Unit.ERR_UNDEFINED_CONDITION=spade.Unit-module.html#ERR_UNDEFINED_CONDITION,Variable spade.Unit_new.ERR_UNDEFINED_CONDITION=spade.Unit_new-module.html#ERR_UNDEFINED_CONDITION,Variable spade.pubsub.ERR_UNDEFINED_CONDITION=spade.pubsub-module.html#ERR_UNDEFINED_CONDITION,Variable spade.socialnetwork.ERR_UNDEFINED_CONDITION=spade.socialnetwork-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.ERR_UNDEFINED_CONDITION=spade.xmpp-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.auth.ERR_UNDEFINED_CONDITION=spade.xmpp.auth-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.browser.ERR_UNDEFINED_CONDITION=spade.xmpp.browser-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.commands.ERR_UNDEFINED_CONDITION=spade.xmpp.commands-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.dispatcher.ERR_UNDEFINED_CONDITION=spade.xmpp.dispatcher-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.features.ERR_UNDEFINED_CONDITION=spade.xmpp.features-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.filetransfer.ERR_UNDEFINED_CONDITION=spade.xmpp.filetransfer-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.protocol.ERR_UNDEFINED_CONDITION=spade.xmpp.protocol-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.roster.ERR_UNDEFINED_CONDITION=spade.xmpp.roster-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmpp.transports.ERR_UNDEFINED_CONDITION=spade.xmpp.transports-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.config.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.config-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.db_fake.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.db_fake-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.dialback.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.dialback-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.jep0077.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.jep0077-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.jep0078.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.jep0078-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.message.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.message-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.muc.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.muc-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.oob.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.oob-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.pubsub.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.pubsub-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.roster.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.roster-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.router.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.router-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.stream.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.stream-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.webadmin.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.webadmin-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.modules.wq.ERR_UNDEFINED_CONDITION=spade.xmppd.modules.wq-module.html#ERR_UNDEFINED_CONDITION,Variable spade.xmppd.xmppd.ERR_UNDEFINED_CONDITION=spade.xmppd.xmppd-module.html#ERR_UNDEFINED_CONDITION"><a title="spade.Agent.ERR_UNDEFINED_CONDITION
spade.MTP.ERR_UNDEFINED_CONDITION
spade.Organization.ERR_UNDEFINED_CONDITION
spade.Organization_new.ERR_UNDEFINED_CONDITION
spade.Unit.ERR_UNDEFINED_CONDITION
spade.Unit_new.ERR_UNDEFINED_CONDITION
spade.pubsub.ERR_UNDEFINED_CONDITION
spade.socialnetwork.ERR_UNDEFINED_CONDITION
spade.xmpp.ERR_UNDEFINED_CONDITION
spade.xmpp.auth.ERR_UNDEFINED_CONDITION
spade.xmpp.browser.ERR_UNDEFINED_CONDITION
spade.xmpp.commands.ERR_UNDEFINED_CONDITION
spade.xmpp.dispatcher.ERR_UNDEFINED_CONDITION
spade.xmpp.features.ERR_UNDEFINED_CONDITION
spade.xmpp.filetransfer.ERR_UNDEFINED_CONDITION
spade.xmpp.protocol.ERR_UNDEFINED_CONDITION
spade.xmpp.roster.ERR_UNDEFINED_CONDITION
spade.xmpp.transports.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.config.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.db_fake.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.dialback.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.jep0077.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.jep0078.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.message.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.muc.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.oob.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.pubsub.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.roster.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.router.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.stream.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.webadmin.ERR_UNDEFINED_CONDITION
spade.xmppd.modules.wq.ERR_UNDEFINED_CONDITION
spade.xmppd.xmppd.ERR_UNDEFINED_CONDITION" class="py-name" href="#" onclick="return doclink('link-653', 'ERR_UNDEFINED_CONDITION', 'link-653');">ERR_UNDEFINED_CONDITION</a></tt> </tt>
<a name="L1341"></a><tt class="py-lineno">1341</tt>  <tt class="py-line">            <tt id="link-654" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-654', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-655" class="py-name"><a title="spade.xmpp.session.Session.push_queue
spade.xmppd.xmppd.Session.push_queue" class="py-name" href="#" onclick="return doclink('link-655', 'push_queue', 'link-159');">push_queue</a></tt><tt class="py-op">(</tt><tt class="py-name">failreason</tt><tt class="py-op">)</tt> </tt>
<a name="L1342"></a><tt class="py-lineno">1342</tt>  <tt class="py-line">            <tt id="link-656" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-656', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-657" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-657', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-658" class="py-name"><a title="spade.Agent.STREAM_REMOTE_CONNECTION_FAILED
spade.MTP.STREAM_REMOTE_CONNECTION_FAILED
spade.Organization.STREAM_REMOTE_CONNECTION_FAILED
spade.Organization_new.STREAM_REMOTE_CONNECTION_FAILED
spade.Unit.STREAM_REMOTE_CONNECTION_FAILED
spade.Unit_new.STREAM_REMOTE_CONNECTION_FAILED
spade.pubsub.STREAM_REMOTE_CONNECTION_FAILED
spade.socialnetwork.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.auth.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.browser.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.commands.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.dispatcher.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.features.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.filetransfer.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.protocol.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.roster.STREAM_REMOTE_CONNECTION_FAILED
spade.xmpp.transports.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.config.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.db_fake.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.dialback.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.jep0077.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.jep0078.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.message.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.muc.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.oob.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.pubsub.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.roster.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.router.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.stream.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.webadmin.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.modules.wq.STREAM_REMOTE_CONNECTION_FAILED
spade.xmppd.xmppd.STREAM_REMOTE_CONNECTION_FAILED" class="py-name" href="#" onclick="return doclink('link-658', 'STREAM_REMOTE_CONNECTION_FAILED', 'link-324');">STREAM_REMOTE_CONNECTION_FAILED</a></tt><tt class="py-op">,</tt><tt id="link-659" class="py-name"><a title="spade.xmpp.features.unregister
spade.xmppd.xmppd.fake_select.poll.unregister" class="py-name" href="#" onclick="return doclink('link-659', 'unregister', 'link-296');">unregister</a></tt><tt class="py-op">=</tt><tt class="py-number">0</tt><tt class="py-op">)</tt> </tt>
<a name="L1343"></a><tt class="py-lineno">1343</tt>  <tt class="py-line">            <tt class="py-keyword">return</tt> </tt>
<a name="L1344"></a><tt class="py-lineno">1344</tt>  <tt class="py-line">        <tt id="link-660" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-660', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-661" class="py-name"><a title="spade.xmpp.session.Session.set_socket_state
spade.xmppd.xmppd.Session.set_socket_state" class="py-name" href="#" onclick="return doclink('link-661', 'set_socket_state', 'link-150');">set_socket_state</a></tt><tt class="py-op">(</tt><tt id="link-662" class="py-name"><a title="spade.xmpp.session.SOCKET_ALIVE
spade.xmppd.modules.stream.SOCKET_ALIVE
spade.xmppd.xmppd.SOCKET_ALIVE" class="py-name" href="#" onclick="return doclink('link-662', 'SOCKET_ALIVE', 'link-4');">SOCKET_ALIVE</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1345"></a><tt class="py-lineno">1345</tt>  <tt class="py-line">        <tt id="link-663" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-663', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-664" class="py-name"><a title="spade.xmpp.session.Session.push_queue
spade.xmppd.xmppd.Session.push_queue" class="py-name" href="#" onclick="return doclink('link-664', 'push_queue', 'link-159');">push_queue</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1346"></a><tt class="py-lineno">1346</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-665" class="py-name"><a title="spade.xmppd.xmppd.Server.registersession
spade.xmppd.xmppd.multisession_manager.multisession_thread.registersession
spade.xmppd.xmppd.multisession_manager.registersession" class="py-name" href="#" onclick="return doclink('link-665', 'registersession', 'link-387');">registersession</a></tt><tt class="py-op">(</tt><tt id="link-666" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-666', 'session', 'link-253');">session</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L1347"></a><tt class="py-lineno">1347</tt>  <tt class="py-line"> </tt>
<a name="Server.Privacy"></a><div id="Server.Privacy-def"><a name="L1348"></a><tt class="py-lineno">1348</tt> <a class="py-toggle" href="#" id="Server.Privacy-toggle" onclick="return toggle('Server.Privacy');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#Privacy">Privacy</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">peer</tt><tt class="py-op">,</tt><tt class="py-param">stanza</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.Privacy-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.Privacy-expanded"><a name="L1349"></a><tt class="py-lineno">1349</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-667" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-667', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACTIVATED</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'warn'</tt><tt class="py-op">)</tt> </tt>
<a name="L1350"></a><tt class="py-lineno">1350</tt>  <tt class="py-line">        <tt class="py-name">template_input</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-string">'jid_from'</tt><tt class="py-op">:</tt><tt class="py-name">unicode</tt><tt class="py-op">(</tt><tt class="py-name">peer</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-668" class="py-name"><a title="spade.RDF0Parser.RDF0Parser.encode" class="py-name" href="#" onclick="return doclink('link-668', 'encode', 'link-153');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'jid_to'</tt><tt class="py-op">:</tt><tt class="py-name">unicode</tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-669" class="py-name"><a title="spade.RDF0Parser.RDF0Parser.encode" class="py-name" href="#" onclick="return doclink('link-669', 'encode', 'link-153');">encode</a></tt><tt class="py-op">(</tt><tt class="py-string">'utf-8'</tt><tt class="py-op">)</tt><tt class="py-op">}</tt> </tt>
<a name="L1351"></a><tt class="py-lineno">1351</tt>  <tt class="py-line">        <tt class="py-name">split_jid</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-670" class="py-name"><a title="spade.xmppd.xmppd.Server.tool_split_jid" class="py-name" href="#" onclick="return doclink('link-670', 'tool_split_jid', 'link-271');">tool_split_jid</a></tt><tt class="py-op">(</tt><tt class="py-name">peer</tt><tt class="py-op">.</tt><tt class="py-name">peer</tt><tt class="py-op">)</tt> </tt>
<a name="L1352"></a><tt class="py-lineno">1352</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">split_jid</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> </tt>
<a name="L1353"></a><tt class="py-lineno">1353</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-671" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-671', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_CHECK</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1354"></a><tt class="py-lineno">1354</tt>  <tt class="py-line"> </tt>
<a name="L1355"></a><tt class="py-lineno">1355</tt>  <tt class="py-line">        <tt class="py-comment">#Stanza Stuff</tt> </tt>
<a name="L1356"></a><tt class="py-lineno">1356</tt>  <tt class="py-line">        <tt class="py-name">to</tt><tt class="py-op">=</tt><tt class="py-name">stanza</tt><tt class="py-op">[</tt><tt class="py-string">'to'</tt><tt class="py-op">]</tt> </tt>
<a name="L1357"></a><tt class="py-lineno">1357</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">to</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-comment"># Not for us.</tt> </tt>
<a name="L1358"></a><tt class="py-lineno">1358</tt>  <tt class="py-line">        <tt class="py-name">to_node</tt><tt class="py-op">=</tt><tt class="py-name">to</tt><tt class="py-op">.</tt><tt id="link-672" class="py-name" targets="Method spade.xmpp.protocol.JID.getNode()=spade.xmpp.protocol.JID-class.html#getNode"><a title="spade.xmpp.protocol.JID.getNode" class="py-name" href="#" onclick="return doclink('link-672', 'getNode', 'link-672');">getNode</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1359"></a><tt class="py-lineno">1359</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-keyword">not</tt> <tt class="py-name">to_node</tt><tt class="py-op">:</tt> <tt class="py-keyword">return</tt> <tt class="py-comment"># Yep, not for us.</tt> </tt>
<a name="L1360"></a><tt class="py-lineno">1360</tt>  <tt class="py-line">        <tt class="py-name">to_domain</tt><tt class="py-op">=</tt><tt class="py-name">to</tt><tt class="py-op">.</tt><tt id="link-673" class="py-name" targets="Method spade.Agent.AbstractAgent.getDomain()=spade.Agent.AbstractAgent-class.html#getDomain,Method spade.xmpp.protocol.JID.getDomain()=spade.xmpp.protocol.JID-class.html#getDomain"><a title="spade.Agent.AbstractAgent.getDomain
spade.xmpp.protocol.JID.getDomain" class="py-name" href="#" onclick="return doclink('link-673', 'getDomain', 'link-673');">getDomain</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1361"></a><tt class="py-lineno">1361</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">to_domain</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-674" class="py-name"><a title="spade.xmppd.modules.config.components" class="py-name" href="#" onclick="return doclink('link-674', 'components', 'link-429');">components</a></tt><tt class="py-op">.</tt><tt id="link-675" class="py-name"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-675', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">component</tt><tt class="py-op">=</tt><tt class="py-name">True</tt> </tt>
<a name="L1362"></a><tt class="py-lineno">1362</tt>  <tt class="py-line">        <tt class="py-keyword">else</tt><tt class="py-op">:</tt><tt class="py-name">component</tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L1363"></a><tt class="py-lineno">1363</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">to_domain</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-676" class="py-name"><a title="spade.xmppd.modules.config.servernames" class="py-name" href="#" onclick="return doclink('link-676', 'servernames', 'link-201');">servernames</a></tt> <tt class="py-keyword">and</tt> <tt class="py-name">to_domain</tt> <tt class="py-op">!=</tt> <tt class="py-name">to</tt><tt class="py-op">:</tt> </tt>
<a name="L1364"></a><tt class="py-lineno">1364</tt>  <tt class="py-line">            <tt class="py-name">bareto</tt><tt class="py-op">=</tt><tt class="py-name">to_node</tt><tt class="py-op">+</tt><tt class="py-string">'@'</tt><tt class="py-op">+</tt><tt class="py-name">to_domain</tt> </tt>
<a name="L1365"></a><tt class="py-lineno">1365</tt>  <tt class="py-line">            <tt id="link-677" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-677', 'name', 'link-97');">name</a></tt><tt class="py-op">=</tt><tt class="py-name">stanza</tt><tt class="py-op">.</tt><tt id="link-678" class="py-name" targets="Method spade.AID.aid.getName()=spade.AID.aid-class.html#getName,Method spade.Agent.AbstractAgent.getName()=spade.Agent.AbstractAgent-class.html#getName,Method spade.DF.DfAgentDescription.getName()=spade.DF.DfAgentDescription-class.html#getName,Method spade.DF.Service.getName()=spade.DF.Service-class.html#getName,Method spade.DF.ServiceDescription.getName()=spade.DF.ServiceDescription-class.html#getName,Method spade.pyparsing.ParseResults.getName()=spade.pyparsing.ParseResults-class.html#getName,Method spade.xmpp.roster.Roster.getName()=spade.xmpp.roster.Roster-class.html#getName,Method spade.xmpp.simplexml.Node.getName()=spade.xmpp.simplexml.Node-class.html#getName,Method spade.xmppd.modules.muc.Room.getName()=spade.xmppd.modules.muc.Room-class.html#getName,Method spade.xmppd.modules.wq.Group.getName()=spade.xmppd.modules.wq.Group-class.html#getName,Method spade.xmppd.xmppd.Session.getName()=spade.xmppd.xmppd.Session-class.html#getName"><a title="spade.AID.aid.getName
spade.Agent.AbstractAgent.getName
spade.DF.DfAgentDescription.getName
spade.DF.Service.getName
spade.DF.ServiceDescription.getName
spade.pyparsing.ParseResults.getName
spade.xmpp.roster.Roster.getName
spade.xmpp.simplexml.Node.getName
spade.xmppd.modules.muc.Room.getName
spade.xmppd.modules.wq.Group.getName
spade.xmppd.xmppd.Session.getName" class="py-name" href="#" onclick="return doclink('link-678', 'getName', 'link-678');">getName</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1366"></a><tt class="py-lineno">1366</tt>  <tt class="py-line">            <tt class="py-name">typ</tt><tt class="py-op">=</tt><tt class="py-name">stanza</tt><tt class="py-op">.</tt><tt id="link-679" class="py-name" targets="Method spade.DF.Service.getType()=spade.DF.Service-class.html#getType,Method spade.DF.ServiceDescription.getType()=spade.DF.ServiceDescription-class.html#getType,Method spade.xmpp.protocol.DataField.getType()=spade.xmpp.protocol.DataField-class.html#getType,Method spade.xmpp.protocol.DataForm.getType()=spade.xmpp.protocol.DataForm-class.html#getType,Method spade.xmpp.protocol.Protocol.getType()=spade.xmpp.protocol.Protocol-class.html#getType"><a title="spade.DF.Service.getType
spade.DF.ServiceDescription.getType
spade.xmpp.protocol.DataField.getType
spade.xmpp.protocol.DataForm.getType
spade.xmpp.protocol.Protocol.getType" class="py-name" href="#" onclick="return doclink('link-679', 'getType', 'link-679');">getType</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1367"></a><tt class="py-lineno">1367</tt>  <tt class="py-line">            <tt class="py-name">to_roster</tt><tt class="py-op">=</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-680" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-680', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-681" class="py-name"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-681', 'get', 'link-260');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">to_domain</tt><tt class="py-op">,</tt><tt class="py-name">to_node</tt><tt class="py-op">,</tt><tt class="py-string">'roster'</tt><tt class="py-op">)</tt> </tt>
<a name="L1368"></a><tt class="py-lineno">1368</tt>  <tt class="py-line"> </tt>
<a name="L1369"></a><tt class="py-lineno">1369</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-682" class="py-name"><a title="spade.xmppd.modules.db_fake.DB" class="py-name" href="#" onclick="return doclink('link-682', 'DB', 'link-259');">DB</a></tt><tt class="py-op">.</tt><tt id="link-683" class="py-name"><a title="spade.FlexQueue.FlexQueue.get
spade.kb.KB.get
spade.tbcbp.CaseDB.get
spade.xmppd.modules.db_fake.DB.get" class="py-name" href="#" onclick="return doclink('link-683', 'get', 'link-260');">get</a></tt><tt class="py-op">(</tt><tt class="py-name">to_domain</tt><tt class="py-op">,</tt><tt class="py-name">to_node</tt><tt class="py-op">,</tt><tt class="py-string">'anon_allow'</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-string">'yes'</tt><tt class="py-op">:</tt> </tt>
<a name="L1370"></a><tt class="py-lineno">1370</tt>  <tt class="py-line">                <tt class="py-name">anon_allow</tt><tt class="py-op">=</tt><tt class="py-name">True</tt> </tt>
<a name="L1371"></a><tt class="py-lineno">1371</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1372"></a><tt class="py-lineno">1372</tt>  <tt class="py-line">                <tt class="py-name">anon_allow</tt><tt class="py-op">=</tt><tt class="py-name">False</tt> </tt>
<a name="L1373"></a><tt class="py-lineno">1373</tt>  <tt class="py-line"> </tt>
<a name="L1374"></a><tt class="py-lineno">1374</tt>  <tt class="py-line">            <tt class="py-name">to_working_roster_item</tt><tt class="py-op">=</tt><tt class="py-name">None</tt> </tt>
<a name="L1375"></a><tt class="py-lineno">1375</tt>  <tt class="py-line">            <tt class="py-comment">#Session stuff</tt> </tt>
<a name="L1376"></a><tt class="py-lineno">1376</tt>  <tt class="py-line">            <tt id="link-684" class="py-name" targets="Module spade.xmpp.roster=spade.xmpp.roster-module.html,Module spade.xmppd.modules.roster=spade.xmppd.modules.roster-module.html"><a title="spade.xmpp.roster
spade.xmppd.modules.roster" class="py-name" href="#" onclick="return doclink('link-684', 'roster', 'link-684');">roster</a></tt><tt class="py-op">=</tt><tt class="py-name">peer</tt><tt class="py-op">.</tt><tt id="link-685" class="py-name" targets="Method spade.xmpp.client.Client.getRoster()=spade.xmpp.client.Client-class.html#getRoster,Method spade.xmpp.roster.Roster.getRoster()=spade.xmpp.roster.Roster-class.html#getRoster,Method spade.xmppd.xmppd.Session.getRoster()=spade.xmppd.xmppd.Session-class.html#getRoster"><a title="spade.xmpp.client.Client.getRoster
spade.xmpp.roster.Roster.getRoster
spade.xmppd.xmppd.Session.getRoster" class="py-name" href="#" onclick="return doclink('link-685', 'getRoster', 'link-685');">getRoster</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1377"></a><tt class="py-lineno">1377</tt>  <tt class="py-line">            <tt class="py-name">node</tt> <tt class="py-op">=</tt> <tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> </tt>
<a name="L1378"></a><tt class="py-lineno">1378</tt>  <tt class="py-line">            <tt class="py-name">domain</tt> <tt class="py-op">=</tt> <tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt> </tt>
<a name="L1379"></a><tt class="py-lineno">1379</tt>  <tt class="py-line">            <tt class="py-name">resource</tt> <tt class="py-op">=</tt> <tt class="py-name">split_jid</tt><tt class="py-op">[</tt><tt class="py-number">2</tt><tt class="py-op">]</tt> </tt>
<a name="L1380"></a><tt class="py-lineno">1380</tt>  <tt class="py-line"> </tt>
<a name="L1381"></a><tt class="py-lineno">1381</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt id="link-686" class="py-name"><a title="spade.Agent.name
spade.MTP.name
spade.Organization.name
spade.Organization_new.name
spade.Unit.name
spade.Unit_new.name
spade.pubsub.name
spade.socialnetwork.name
spade.xmpp.auth.name
spade.xmpp.browser.name
spade.xmpp.commands.Command_Handler_Prototype.name
spade.xmpp.commands.TestCommand.name
spade.xmpp.commands.name
spade.xmpp.dispatcher.name
spade.xmpp.features.name
spade.xmpp.filetransfer.name
spade.xmpp.name
spade.xmpp.protocol.name
spade.xmpp.roster.name
spade.xmpp.transports.name
spade.xmppd.modules.config.name
spade.xmppd.modules.db_fake.name
spade.xmppd.modules.dialback.name
spade.xmppd.modules.jep0077.name
spade.xmppd.modules.jep0078.name
spade.xmppd.modules.message.name
spade.xmppd.modules.muc.name
spade.xmppd.modules.oob.name
spade.xmppd.modules.pubsub.name
spade.xmppd.modules.roster.name
spade.xmppd.modules.router.name
spade.xmppd.modules.stream.name
spade.xmppd.modules.webadmin.name
spade.xmppd.modules.wq.name
spade.xmppd.xmppd.name" class="py-name" href="#" onclick="return doclink('link-686', 'name', 'link-97');">name</a></tt><tt class="py-op">==</tt><tt class="py-string">'presence'</tt><tt class="py-op">:</tt> </tt>
<a name="L1382"></a><tt class="py-lineno">1382</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-name">stanza</tt><tt class="py-op">.</tt><tt id="link-687" class="py-name"><a title="spade.DF.Service.getType
spade.DF.ServiceDescription.getType
spade.xmpp.protocol.DataField.getType
spade.xmpp.protocol.DataForm.getType
spade.xmpp.protocol.Protocol.getType" class="py-name" href="#" onclick="return doclink('link-687', 'getType', 'link-679');">getType</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-op">[</tt><tt class="py-string">"subscribe"</tt><tt class="py-op">,</tt> <tt class="py-string">"subscribed"</tt><tt class="py-op">,</tt> <tt class="py-string">"unsubscribe"</tt><tt class="py-op">,</tt> <tt class="py-string">"unsubscribed"</tt><tt class="py-op">]</tt><tt class="py-op">:</tt> </tt>
<a name="L1383"></a><tt class="py-lineno">1383</tt>  <tt class="py-line">                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-688" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-688', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_CLEAR_ONEWAY_PRESENCE</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1384"></a><tt class="py-lineno">1384</tt>  <tt class="py-line">                    <tt class="py-keyword">return</tt> </tt>
<a name="L1385"></a><tt class="py-lineno">1385</tt>  <tt class="py-line"> </tt>
<a name="L1386"></a><tt class="py-lineno">1386</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">node</tt><tt class="py-op">+</tt><tt class="py-string">'@'</tt><tt class="py-op">+</tt><tt class="py-name">domain</tt> <tt class="py-op">==</tt> <tt class="py-name">bareto</tt><tt class="py-op">:</tt> </tt>
<a name="L1387"></a><tt class="py-lineno">1387</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-689" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-689', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_CLEAR_UNLIMITED</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1388"></a><tt class="py-lineno">1388</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> </tt>
<a name="L1389"></a><tt class="py-lineno">1389</tt>  <tt class="py-line"> </tt>
<a name="L1390"></a><tt class="py-lineno">1390</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">to_roster</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1391"></a><tt class="py-lineno">1391</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt id="link-690" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-690', 'x', 'link-22');">x</a></tt><tt class="py-op">,</tt><tt id="link-691" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-691', 'y', 'link-23');">y</a></tt> <tt class="py-keyword">in</tt> <tt class="py-name">to_roster</tt><tt class="py-op">.</tt><tt id="link-692" class="py-name"><a title="spade.odict.odict.iteritems" class="py-name" href="#" onclick="return doclink('link-692', 'iteritems', 'link-24');">iteritems</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1392"></a><tt class="py-lineno">1392</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt id="link-693" class="py-name"><a title="spade.Agent.x
spade.bdi.x
spade.logic.x" class="py-name" href="#" onclick="return doclink('link-693', 'x', 'link-22');">x</a></tt> <tt class="py-op">==</tt> <tt class="py-name">node</tt><tt class="py-op">+</tt><tt class="py-string">'@'</tt><tt class="py-op">+</tt><tt class="py-name">domain</tt><tt class="py-op">:</tt> </tt>
<a name="L1393"></a><tt class="py-lineno">1393</tt>  <tt class="py-line">                        <tt class="py-name">to_working_roster_item</tt> <tt class="py-op">=</tt> <tt id="link-694" class="py-name"><a title="spade.Agent.y
spade.bdi.y
spade.logic.y" class="py-name" href="#" onclick="return doclink('link-694', 'y', 'link-23');">y</a></tt> </tt>
<a name="L1394"></a><tt class="py-lineno">1394</tt>  <tt class="py-line">                        <tt class="py-keyword">break</tt><tt class="py-op">;</tt> </tt>
<a name="L1395"></a><tt class="py-lineno">1395</tt>  <tt class="py-line"> </tt>
<a name="L1396"></a><tt class="py-lineno">1396</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">to_working_roster_item</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">anon_allow</tt><tt class="py-op">==</tt><tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L1397"></a><tt class="py-lineno">1397</tt>  <tt class="py-line">                <tt class="py-name">peer</tt><tt class="py-op">.</tt><tt id="link-695" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-695', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt id="link-696" class="py-name"><a title="spade.xmpp.protocol.Error" class="py-name" href="#" onclick="return doclink('link-696', 'Error', 'link-165');">Error</a></tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">,</tt><tt id="link-697" class="py-name" targets="Variable spade.Agent.ERR_NOT_AUTHORIZED=spade.Agent-module.html#ERR_NOT_AUTHORIZED,Variable spade.MTP.ERR_NOT_AUTHORIZED=spade.MTP-module.html#ERR_NOT_AUTHORIZED,Variable spade.Organization.ERR_NOT_AUTHORIZED=spade.Organization-module.html#ERR_NOT_AUTHORIZED,Variable spade.Organization_new.ERR_NOT_AUTHORIZED=spade.Organization_new-module.html#ERR_NOT_AUTHORIZED,Variable spade.Unit.ERR_NOT_AUTHORIZED=spade.Unit-module.html#ERR_NOT_AUTHORIZED,Variable spade.Unit_new.ERR_NOT_AUTHORIZED=spade.Unit_new-module.html#ERR_NOT_AUTHORIZED,Variable spade.pubsub.ERR_NOT_AUTHORIZED=spade.pubsub-module.html#ERR_NOT_AUTHORIZED,Variable spade.socialnetwork.ERR_NOT_AUTHORIZED=spade.socialnetwork-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.ERR_NOT_AUTHORIZED=spade.xmpp-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.auth.ERR_NOT_AUTHORIZED=spade.xmpp.auth-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.browser.ERR_NOT_AUTHORIZED=spade.xmpp.browser-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.commands.ERR_NOT_AUTHORIZED=spade.xmpp.commands-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.dispatcher.ERR_NOT_AUTHORIZED=spade.xmpp.dispatcher-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.features.ERR_NOT_AUTHORIZED=spade.xmpp.features-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.filetransfer.ERR_NOT_AUTHORIZED=spade.xmpp.filetransfer-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.protocol.ERR_NOT_AUTHORIZED=spade.xmpp.protocol-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.roster.ERR_NOT_AUTHORIZED=spade.xmpp.roster-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmpp.transports.ERR_NOT_AUTHORIZED=spade.xmpp.transports-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.config.ERR_NOT_AUTHORIZED=spade.xmppd.modules.config-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.db_fake.ERR_NOT_AUTHORIZED=spade.xmppd.modules.db_fake-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.dialback.ERR_NOT_AUTHORIZED=spade.xmppd.modules.dialback-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.jep0077.ERR_NOT_AUTHORIZED=spade.xmppd.modules.jep0077-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.jep0078.ERR_NOT_AUTHORIZED=spade.xmppd.modules.jep0078-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.message.ERR_NOT_AUTHORIZED=spade.xmppd.modules.message-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.muc.ERR_NOT_AUTHORIZED=spade.xmppd.modules.muc-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.oob.ERR_NOT_AUTHORIZED=spade.xmppd.modules.oob-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.pubsub.ERR_NOT_AUTHORIZED=spade.xmppd.modules.pubsub-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.roster.ERR_NOT_AUTHORIZED=spade.xmppd.modules.roster-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.router.ERR_NOT_AUTHORIZED=spade.xmppd.modules.router-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.stream.ERR_NOT_AUTHORIZED=spade.xmppd.modules.stream-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.webadmin.ERR_NOT_AUTHORIZED=spade.xmppd.modules.webadmin-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.modules.wq.ERR_NOT_AUTHORIZED=spade.xmppd.modules.wq-module.html#ERR_NOT_AUTHORIZED,Variable spade.xmppd.xmppd.ERR_NOT_AUTHORIZED=spade.xmppd.xmppd-module.html#ERR_NOT_AUTHORIZED"><a title="spade.Agent.ERR_NOT_AUTHORIZED
spade.MTP.ERR_NOT_AUTHORIZED
spade.Organization.ERR_NOT_AUTHORIZED
spade.Organization_new.ERR_NOT_AUTHORIZED
spade.Unit.ERR_NOT_AUTHORIZED
spade.Unit_new.ERR_NOT_AUTHORIZED
spade.pubsub.ERR_NOT_AUTHORIZED
spade.socialnetwork.ERR_NOT_AUTHORIZED
spade.xmpp.ERR_NOT_AUTHORIZED
spade.xmpp.auth.ERR_NOT_AUTHORIZED
spade.xmpp.browser.ERR_NOT_AUTHORIZED
spade.xmpp.commands.ERR_NOT_AUTHORIZED
spade.xmpp.dispatcher.ERR_NOT_AUTHORIZED
spade.xmpp.features.ERR_NOT_AUTHORIZED
spade.xmpp.filetransfer.ERR_NOT_AUTHORIZED
spade.xmpp.protocol.ERR_NOT_AUTHORIZED
spade.xmpp.roster.ERR_NOT_AUTHORIZED
spade.xmpp.transports.ERR_NOT_AUTHORIZED
spade.xmppd.modules.config.ERR_NOT_AUTHORIZED
spade.xmppd.modules.db_fake.ERR_NOT_AUTHORIZED
spade.xmppd.modules.dialback.ERR_NOT_AUTHORIZED
spade.xmppd.modules.jep0077.ERR_NOT_AUTHORIZED
spade.xmppd.modules.jep0078.ERR_NOT_AUTHORIZED
spade.xmppd.modules.message.ERR_NOT_AUTHORIZED
spade.xmppd.modules.muc.ERR_NOT_AUTHORIZED
spade.xmppd.modules.oob.ERR_NOT_AUTHORIZED
spade.xmppd.modules.pubsub.ERR_NOT_AUTHORIZED
spade.xmppd.modules.roster.ERR_NOT_AUTHORIZED
spade.xmppd.modules.router.ERR_NOT_AUTHORIZED
spade.xmppd.modules.stream.ERR_NOT_AUTHORIZED
spade.xmppd.modules.webadmin.ERR_NOT_AUTHORIZED
spade.xmppd.modules.wq.ERR_NOT_AUTHORIZED
spade.xmppd.xmppd.ERR_NOT_AUTHORIZED" class="py-name" href="#" onclick="return doclink('link-697', 'ERR_NOT_AUTHORIZED', 'link-697');">ERR_NOT_AUTHORIZED</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1398"></a><tt class="py-lineno">1398</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-698" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-698', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_NOTCLEAR_DOUBLEFALSE</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L1399"></a><tt class="py-lineno">1399</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> <tt id="link-699" class="py-name" targets="Class spade.xmpp.protocol.NodeProcessed=spade.xmpp.protocol.NodeProcessed-class.html"><a title="spade.xmpp.protocol.NodeProcessed" class="py-name" href="#" onclick="return doclink('link-699', 'NodeProcessed', 'link-699');">NodeProcessed</a></tt> <tt class="py-comment"># Take the blue pill</tt> </tt>
<a name="L1400"></a><tt class="py-lineno">1400</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">to_working_roster_item</tt> <tt class="py-op">==</tt> <tt class="py-name">None</tt> <tt class="py-keyword">and</tt> <tt class="py-name">anon_allow</tt><tt class="py-op">==</tt><tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1401"></a><tt class="py-lineno">1401</tt>  <tt class="py-line">                <tt class="py-name">to_working_roster_item</tt> <tt class="py-op">=</tt> <tt class="py-op">{</tt><tt class="py-op">}</tt> </tt>
<a name="L1402"></a><tt class="py-lineno">1402</tt>  <tt class="py-line">                <tt class="py-name">to_working_roster_item</tt><tt class="py-op">[</tt><tt class="py-string">'subscription'</tt><tt class="py-op">]</tt> <tt class="py-op">=</tt> <tt class="py-string">'none'</tt> </tt>
<a name="L1403"></a><tt class="py-lineno">1403</tt>  <tt class="py-line"> </tt>
<a name="L1404"></a><tt class="py-lineno">1404</tt>  <tt class="py-line">            <tt class="py-keyword">for</tt> <tt id="link-700" class="py-name" targets="Variable spade.Agent.z=spade.Agent-module.html#z,Variable spade.bdi.z=spade.bdi-module.html#z,Variable spade.logic.z=spade.logic-module.html#z"><a title="spade.Agent.z
spade.bdi.z
spade.logic.z" class="py-name" href="#" onclick="return doclink('link-700', 'z', 'link-700');">z</a></tt><tt class="py-op">,</tt><tt id="link-701" class="py-name" targets="Variable spade.ACLMessage.ACLMessage.a=spade.ACLMessage.ACLMessage-class.html#a"><a title="spade.ACLMessage.ACLMessage.a" class="py-name" href="#" onclick="return doclink('link-701', 'a', 'link-701');">a</a></tt> <tt class="py-keyword">in</tt> <tt id="link-702" class="py-name"><a title="spade.xmpp.roster
spade.xmppd.modules.roster" class="py-name" href="#" onclick="return doclink('link-702', 'roster', 'link-684');">roster</a></tt><tt class="py-op">.</tt><tt id="link-703" class="py-name"><a title="spade.odict.odict.iteritems" class="py-name" href="#" onclick="return doclink('link-703', 'iteritems', 'link-24');">iteritems</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1405"></a><tt class="py-lineno">1405</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt id="link-704" class="py-name"><a title="spade.Agent.z
spade.bdi.z
spade.logic.z" class="py-name" href="#" onclick="return doclink('link-704', 'z', 'link-700');">z</a></tt> <tt class="py-op">==</tt> <tt class="py-name">bareto</tt><tt class="py-op">:</tt> </tt>
<a name="L1406"></a><tt class="py-lineno">1406</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt id="link-705" class="py-name"><a title="spade.ACLMessage.ACLMessage.a" class="py-name" href="#" onclick="return doclink('link-705', 'a', 'link-701');">a</a></tt><tt class="py-op">[</tt><tt class="py-string">'subscription'</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">'both'</tt> <tt class="py-keyword">and</tt> <tt class="py-name">to_working_roster_item</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'subscription'</tt><tt class="py-op">)</tt> <tt class="py-keyword">and</tt> <tt class="py-name">to_working_roster_item</tt><tt class="py-op">[</tt><tt class="py-string">'subscription'</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">'both'</tt><tt class="py-op">:</tt> </tt>
<a name="L1407"></a><tt class="py-lineno">1407</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-706" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-706', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_CLEAR_BIDIRECTIONAL</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1408"></a><tt class="py-lineno">1408</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> </tt>
<a name="L1409"></a><tt class="py-lineno">1409</tt>  <tt class="py-line">                    <tt class="py-keyword">elif</tt> <tt class="py-name">to_working_roster_item</tt><tt class="py-op">[</tt><tt class="py-string">'subscription'</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">'from'</tt><tt class="py-op">:</tt> </tt>
<a name="L1410"></a><tt class="py-lineno">1410</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-707" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-707', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_CLEAR_ONEWAY</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1411"></a><tt class="py-lineno">1411</tt>  <tt class="py-line">                        <tt class="py-keyword">return</tt> </tt>
<a name="L1412"></a><tt class="py-lineno">1412</tt>  <tt class="py-line">                    <tt class="py-keyword">elif</tt> <tt class="py-name">to_working_roster_item</tt><tt class="py-op">[</tt><tt class="py-string">'subscription'</tt><tt class="py-op">]</tt><tt class="py-op">==</tt><tt class="py-string">'to'</tt><tt class="py-op">:</tt> </tt>
<a name="L1413"></a><tt class="py-lineno">1413</tt>  <tt class="py-line">                        <tt class="py-name">peer</tt><tt class="py-op">.</tt><tt id="link-708" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-708', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt id="link-709" class="py-name"><a title="spade.xmpp.protocol.Error" class="py-name" href="#" onclick="return doclink('link-709', 'Error', 'link-165');">Error</a></tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">,</tt><tt id="link-710" class="py-name"><a title="spade.Agent.ERR_NOT_AUTHORIZED
spade.MTP.ERR_NOT_AUTHORIZED
spade.Organization.ERR_NOT_AUTHORIZED
spade.Organization_new.ERR_NOT_AUTHORIZED
spade.Unit.ERR_NOT_AUTHORIZED
spade.Unit_new.ERR_NOT_AUTHORIZED
spade.pubsub.ERR_NOT_AUTHORIZED
spade.socialnetwork.ERR_NOT_AUTHORIZED
spade.xmpp.ERR_NOT_AUTHORIZED
spade.xmpp.auth.ERR_NOT_AUTHORIZED
spade.xmpp.browser.ERR_NOT_AUTHORIZED
spade.xmpp.commands.ERR_NOT_AUTHORIZED
spade.xmpp.dispatcher.ERR_NOT_AUTHORIZED
spade.xmpp.features.ERR_NOT_AUTHORIZED
spade.xmpp.filetransfer.ERR_NOT_AUTHORIZED
spade.xmpp.protocol.ERR_NOT_AUTHORIZED
spade.xmpp.roster.ERR_NOT_AUTHORIZED
spade.xmpp.transports.ERR_NOT_AUTHORIZED
spade.xmppd.modules.config.ERR_NOT_AUTHORIZED
spade.xmppd.modules.db_fake.ERR_NOT_AUTHORIZED
spade.xmppd.modules.dialback.ERR_NOT_AUTHORIZED
spade.xmppd.modules.jep0077.ERR_NOT_AUTHORIZED
spade.xmppd.modules.jep0078.ERR_NOT_AUTHORIZED
spade.xmppd.modules.message.ERR_NOT_AUTHORIZED
spade.xmppd.modules.muc.ERR_NOT_AUTHORIZED
spade.xmppd.modules.oob.ERR_NOT_AUTHORIZED
spade.xmppd.modules.pubsub.ERR_NOT_AUTHORIZED
spade.xmppd.modules.roster.ERR_NOT_AUTHORIZED
spade.xmppd.modules.router.ERR_NOT_AUTHORIZED
spade.xmppd.modules.stream.ERR_NOT_AUTHORIZED
spade.xmppd.modules.webadmin.ERR_NOT_AUTHORIZED
spade.xmppd.modules.wq.ERR_NOT_AUTHORIZED
spade.xmppd.xmppd.ERR_NOT_AUTHORIZED" class="py-name" href="#" onclick="return doclink('link-710', 'ERR_NOT_AUTHORIZED', 'link-697');">ERR_NOT_AUTHORIZED</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1414"></a><tt class="py-lineno">1414</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-711" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-711', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_NOTCLEAR_MODETO</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L1415"></a><tt class="py-lineno">1415</tt>  <tt class="py-line">                        <tt class="py-keyword">raise</tt> <tt id="link-712" class="py-name"><a title="spade.xmpp.protocol.NodeProcessed" class="py-name" href="#" onclick="return doclink('link-712', 'NodeProcessed', 'link-699');">NodeProcessed</a></tt> <tt class="py-comment"># Take the blue pill</tt> </tt>
<a name="L1416"></a><tt class="py-lineno">1416</tt>  <tt class="py-line"> </tt>
<a name="L1417"></a><tt class="py-lineno">1417</tt>  <tt class="py-line"> </tt>
<a name="L1418"></a><tt class="py-lineno">1418</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">anon_allow</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt> <tt class="py-keyword">or</tt> <tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-name">to</tt><tt class="py-op">)</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-713" class="py-name"><a title="spade.xmppd.modules.config.servernames" class="py-name" href="#" onclick="return doclink('link-713', 'servernames', 'link-201');">servernames</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1419"></a><tt class="py-lineno">1419</tt>  <tt class="py-line">                <tt class="py-keyword">return</tt> </tt>
<a name="L1420"></a><tt class="py-lineno">1420</tt>  <tt class="py-line">            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1421"></a><tt class="py-lineno">1421</tt>  <tt class="py-line">                <tt class="py-name">peer</tt><tt class="py-op">.</tt><tt id="link-714" class="py-name"><a title="spade.Agent.AbstractAgent.send
spade.MTP.MTP.send
spade.xmpp.dispatcher.Dispatcher.send
spade.xmpp.transports.TCPsocket.send
spade.xmppd.xmppd.RPC_Client.send
spade.xmppd.xmppd.Session.send" class="py-name" href="#" onclick="return doclink('link-714', 'send', 'link-108');">send</a></tt><tt class="py-op">(</tt><tt id="link-715" class="py-name"><a title="spade.xmpp.protocol.Error" class="py-name" href="#" onclick="return doclink('link-715', 'Error', 'link-165');">Error</a></tt><tt class="py-op">(</tt><tt class="py-name">stanza</tt><tt class="py-op">,</tt><tt id="link-716" class="py-name"><a title="spade.Agent.ERR_NOT_AUTHORIZED
spade.MTP.ERR_NOT_AUTHORIZED
spade.Organization.ERR_NOT_AUTHORIZED
spade.Organization_new.ERR_NOT_AUTHORIZED
spade.Unit.ERR_NOT_AUTHORIZED
spade.Unit_new.ERR_NOT_AUTHORIZED
spade.pubsub.ERR_NOT_AUTHORIZED
spade.socialnetwork.ERR_NOT_AUTHORIZED
spade.xmpp.ERR_NOT_AUTHORIZED
spade.xmpp.auth.ERR_NOT_AUTHORIZED
spade.xmpp.browser.ERR_NOT_AUTHORIZED
spade.xmpp.commands.ERR_NOT_AUTHORIZED
spade.xmpp.dispatcher.ERR_NOT_AUTHORIZED
spade.xmpp.features.ERR_NOT_AUTHORIZED
spade.xmpp.filetransfer.ERR_NOT_AUTHORIZED
spade.xmpp.protocol.ERR_NOT_AUTHORIZED
spade.xmpp.roster.ERR_NOT_AUTHORIZED
spade.xmpp.transports.ERR_NOT_AUTHORIZED
spade.xmppd.modules.config.ERR_NOT_AUTHORIZED
spade.xmppd.modules.db_fake.ERR_NOT_AUTHORIZED
spade.xmppd.modules.dialback.ERR_NOT_AUTHORIZED
spade.xmppd.modules.jep0077.ERR_NOT_AUTHORIZED
spade.xmppd.modules.jep0078.ERR_NOT_AUTHORIZED
spade.xmppd.modules.message.ERR_NOT_AUTHORIZED
spade.xmppd.modules.muc.ERR_NOT_AUTHORIZED
spade.xmppd.modules.oob.ERR_NOT_AUTHORIZED
spade.xmppd.modules.pubsub.ERR_NOT_AUTHORIZED
spade.xmppd.modules.roster.ERR_NOT_AUTHORIZED
spade.xmppd.modules.router.ERR_NOT_AUTHORIZED
spade.xmppd.modules.stream.ERR_NOT_AUTHORIZED
spade.xmppd.modules.webadmin.ERR_NOT_AUTHORIZED
spade.xmppd.modules.wq.ERR_NOT_AUTHORIZED
spade.xmppd.xmppd.ERR_NOT_AUTHORIZED" class="py-name" href="#" onclick="return doclink('link-716', 'ERR_NOT_AUTHORIZED', 'link-697');">ERR_NOT_AUTHORIZED</a></tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1422"></a><tt class="py-lineno">1422</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt id="link-717" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-717', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_PVCY_ACCESS_NOTCLEAR_FALSEANON</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">template_input</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L1423"></a><tt class="py-lineno">1423</tt>  <tt class="py-line">                <tt class="py-keyword">raise</tt> <tt id="link-718" class="py-name"><a title="spade.xmpp.protocol.NodeProcessed" class="py-name" href="#" onclick="return doclink('link-718', 'NodeProcessed', 'link-699');">NodeProcessed</a></tt> <tt class="py-comment"># Take the blue pill</tt> </tt>
<a name="L1424"></a><tt class="py-lineno">1424</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> </tt>
</div><a name="L1425"></a><tt class="py-lineno">1425</tt>  <tt class="py-line"> </tt>
<a name="Server.Dialback"></a><div id="Server.Dialback-def"><a name="L1426"></a><tt class="py-lineno">1426</tt> <a class="py-toggle" href="#" id="Server.Dialback-toggle" onclick="return toggle('Server.Dialback');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#Dialback">Dialback</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">session</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.Dialback-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.Dialback-expanded"><a name="L1427"></a><tt class="py-lineno">1427</tt>  <tt class="py-line">        <tt id="link-719" class="py-name"><a title="spade.xmpp.session" class="py-name" href="#" onclick="return doclink('link-719', 'session', 'link-253');">session</a></tt><tt class="py-op">.</tt><tt id="link-720" class="py-name"><a title="spade.xmpp.session.Session.terminate_stream
spade.xmppd.xmppd.Session.terminate_stream" class="py-name" href="#" onclick="return doclink('link-720', 'terminate_stream', 'link-177');">terminate_stream</a></tt><tt class="py-op">(</tt><tt id="link-721" class="py-name" targets="Variable spade.Agent.STREAM_UNSUPPORTED_VERSION=spade.Agent-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.MTP.STREAM_UNSUPPORTED_VERSION=spade.MTP-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.Organization.STREAM_UNSUPPORTED_VERSION=spade.Organization-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.Organization_new.STREAM_UNSUPPORTED_VERSION=spade.Organization_new-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.Unit.STREAM_UNSUPPORTED_VERSION=spade.Unit-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.Unit_new.STREAM_UNSUPPORTED_VERSION=spade.Unit_new-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.pubsub.STREAM_UNSUPPORTED_VERSION=spade.pubsub-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.socialnetwork.STREAM_UNSUPPORTED_VERSION=spade.socialnetwork-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.STREAM_UNSUPPORTED_VERSION=spade.xmpp-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.auth.STREAM_UNSUPPORTED_VERSION=spade.xmpp.auth-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.browser.STREAM_UNSUPPORTED_VERSION=spade.xmpp.browser-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.commands.STREAM_UNSUPPORTED_VERSION=spade.xmpp.commands-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.dispatcher.STREAM_UNSUPPORTED_VERSION=spade.xmpp.dispatcher-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.features.STREAM_UNSUPPORTED_VERSION=spade.xmpp.features-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.filetransfer.STREAM_UNSUPPORTED_VERSION=spade.xmpp.filetransfer-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.protocol.STREAM_UNSUPPORTED_VERSION=spade.xmpp.protocol-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.roster.STREAM_UNSUPPORTED_VERSION=spade.xmpp.roster-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmpp.transports.STREAM_UNSUPPORTED_VERSION=spade.xmpp.transports-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.config.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.config-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.db_fake.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.db_fake-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.dialback.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.dialback-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.jep0077.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.jep0077-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.jep0078.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.jep0078-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.message.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.message-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.muc.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.muc-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.oob.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.oob-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.pubsub.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.pubsub-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.roster.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.roster-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.router.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.router-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.stream.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.stream-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.webadmin.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.webadmin-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.modules.wq.STREAM_UNSUPPORTED_VERSION=spade.xmppd.modules.wq-module.html#STREAM_UNSUPPORTED_VERSION,Variable spade.xmppd.xmppd.STREAM_UNSUPPORTED_VERSION=spade.xmppd.xmppd-module.html#STREAM_UNSUPPORTED_VERSION"><a title="spade.Agent.STREAM_UNSUPPORTED_VERSION
spade.MTP.STREAM_UNSUPPORTED_VERSION
spade.Organization.STREAM_UNSUPPORTED_VERSION
spade.Organization_new.STREAM_UNSUPPORTED_VERSION
spade.Unit.STREAM_UNSUPPORTED_VERSION
spade.Unit_new.STREAM_UNSUPPORTED_VERSION
spade.pubsub.STREAM_UNSUPPORTED_VERSION
spade.socialnetwork.STREAM_UNSUPPORTED_VERSION
spade.xmpp.STREAM_UNSUPPORTED_VERSION
spade.xmpp.auth.STREAM_UNSUPPORTED_VERSION
spade.xmpp.browser.STREAM_UNSUPPORTED_VERSION
spade.xmpp.commands.STREAM_UNSUPPORTED_VERSION
spade.xmpp.dispatcher.STREAM_UNSUPPORTED_VERSION
spade.xmpp.features.STREAM_UNSUPPORTED_VERSION
spade.xmpp.filetransfer.STREAM_UNSUPPORTED_VERSION
spade.xmpp.protocol.STREAM_UNSUPPORTED_VERSION
spade.xmpp.roster.STREAM_UNSUPPORTED_VERSION
spade.xmpp.transports.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.config.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.db_fake.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.dialback.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.jep0077.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.jep0078.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.message.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.muc.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.oob.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.pubsub.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.roster.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.router.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.stream.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.webadmin.STREAM_UNSUPPORTED_VERSION
spade.xmppd.modules.wq.STREAM_UNSUPPORTED_VERSION
spade.xmppd.xmppd.STREAM_UNSUPPORTED_VERSION" class="py-name" href="#" onclick="return doclink('link-721', 'STREAM_UNSUPPORTED_VERSION', 'link-721');">STREAM_UNSUPPORTED_VERSION</a></tt><tt class="py-op">)</tt> </tt>
</div><a name="L1428"></a><tt class="py-lineno">1428</tt>  <tt class="py-line"> </tt>
<a name="Server.pick_rand"></a><div id="Server.pick_rand-def"><a name="L1429"></a><tt class="py-lineno">1429</tt> <a class="py-toggle" href="#" id="Server.pick_rand-toggle" onclick="return toggle('Server.pick_rand');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.Server-class.html#pick_rand">pick_rand</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="Server.pick_rand-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="Server.pick_rand-expanded"><a name="L1430"></a><tt class="py-lineno">1430</tt>  <tt class="py-line">        <tt class="py-docstring">"return random int from 7000 to 8999 -- used for random port"</tt> </tt>
<a name="L1431"></a><tt class="py-lineno">1431</tt>  <tt class="py-line">        <tt class="py-keyword">import</tt> <tt class="py-name">random</tt> </tt>
<a name="L1432"></a><tt class="py-lineno">1432</tt>  <tt class="py-line">        <tt class="py-keyword">return</tt> <tt class="py-name">random</tt><tt class="py-op">.</tt><tt class="py-name">randrange</tt><tt class="py-op">(</tt><tt class="py-number">7000</tt><tt class="py-op">,</tt><tt class="py-number">8999</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1433"></a><tt class="py-lineno">1433</tt>  <tt class="py-line"> </tt>
<a name="start_new_thread_fake"></a><div id="start_new_thread_fake-def"><a name="L1434"></a><tt class="py-lineno">1434</tt> <a class="py-toggle" href="#" id="start_new_thread_fake-toggle" onclick="return toggle('start_new_thread_fake');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd-module.html#start_new_thread_fake">start_new_thread_fake</a><tt class="py-op">(</tt><tt class="py-param">func</tt><tt class="py-op">,</tt><tt class="py-param">args</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="start_new_thread_fake-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="start_new_thread_fake-expanded"><a name="L1435"></a><tt class="py-lineno">1435</tt>  <tt class="py-line">    <tt class="py-name">func</tt><tt class="py-op">(</tt><tt class="py-op">*</tt><tt class="py-name">args</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1436"></a><tt class="py-lineno">1436</tt>  <tt class="py-line"> </tt>
<a name="testrun"></a><div id="testrun-def"><a name="L1437"></a><tt class="py-lineno">1437</tt> <a class="py-toggle" href="#" id="testrun-toggle" onclick="return toggle('testrun');">-</a><tt class="py-line"><tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd-module.html#testrun">testrun</a><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="testrun-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="testrun-expanded"><a name="L1438"></a><tt class="py-lineno">1438</tt>  <tt class="py-line">    <tt class="py-name">thread</tt><tt class="py-op">.</tt><tt class="py-name">start_new_thread</tt><tt class="py-op">=</tt><tt id="link-722" class="py-name" targets="Function spade.xmppd.xmppd.start_new_thread_fake()=spade.xmppd.xmppd-module.html#start_new_thread_fake"><a title="spade.xmppd.xmppd.start_new_thread_fake" class="py-name" href="#" onclick="return doclink('link-722', 'start_new_thread_fake', 'link-722');">start_new_thread_fake</a></tt> </tt>
<a name="L1439"></a><tt class="py-lineno">1439</tt>  <tt class="py-line">    <tt class="py-keyword">import</tt> <tt id="link-723" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-723', 'modules', 'link-468');">modules</a></tt> </tt>
<a name="L1440"></a><tt class="py-lineno">1440</tt>  <tt class="py-line">    <tt id="link-724" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-724', 'modules', 'link-468');">modules</a></tt><tt class="py-op">.</tt><tt id="link-725" class="py-name" targets="Module spade.xmppd.modules.stream=spade.xmppd.modules.stream-module.html"><a title="spade.xmppd.modules.stream" class="py-name" href="#" onclick="return doclink('link-725', 'stream', 'link-725');">stream</a></tt><tt class="py-op">.</tt><tt class="py-name">thread</tt><tt class="py-op">.</tt><tt class="py-name">start_new_thread</tt><tt class="py-op">=</tt><tt id="link-726" class="py-name"><a title="spade.xmppd.xmppd.start_new_thread_fake" class="py-name" href="#" onclick="return doclink('link-726', 'start_new_thread_fake', 'link-722');">start_new_thread_fake</a></tt> </tt>
<a name="L1441"></a><tt class="py-lineno">1441</tt>  <tt class="py-line">    <tt class="py-keyword">return</tt> <tt id="link-727" class="py-name" targets="Class spade.xmppd.xmppd.Server=spade.xmppd.xmppd.Server-class.html"><a title="spade.xmppd.xmppd.Server" class="py-name" href="#" onclick="return doclink('link-727', 'Server', 'link-727');">Server</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
</div><a name="L1442"></a><tt class="py-lineno">1442</tt>  <tt class="py-line"> </tt>
<a name="get_input"></a><div id="get_input-def"><a name="L1443"></a><tt class="py-lineno">1443</tt> <a class="py-toggle" href="#" id="get_input-toggle" onclick="return toggle('get_input');">-</a><tt class="py-line"><tt class="py-keyword">class</tt> <a class="py-def-name" href="spade.xmppd.xmppd.get_input-class.html">get_input</a><tt class="py-op">(</tt><tt class="py-base-class">threading</tt><tt class="py-op">.</tt><tt class="py-base-class">Thread</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="get_input-collapsed" style="display:none;" pad="++++" indent="++++"></div><div id="get_input-expanded"><a name="get_input.__init__"></a><div id="get_input.__init__-def"><a name="L1444"></a><tt class="py-lineno">1444</tt> <a class="py-toggle" href="#" id="get_input.__init__-toggle" onclick="return toggle('get_input.__init__');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.get_input-class.html#__init__">__init__</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">,</tt><tt class="py-param">owner</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="get_input.__init__-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="get_input.__init__-expanded"><a name="L1445"></a><tt class="py-lineno">1445</tt>  <tt class="py-line">        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt> <tt class="py-op">=</tt> <tt class="py-name">owner</tt> </tt>
<a name="L1446"></a><tt class="py-lineno">1446</tt>  <tt class="py-line">        <tt class="py-name">threading</tt><tt class="py-op">.</tt><tt class="py-name">Thread</tt><tt class="py-op">.</tt><tt id="link-728" class="py-name"><a title="spade.ACLMessage.ACLMessage.__init__
spade.ACLParser.ACLParser.__init__
spade.ACLParser.ACLxmlParser.__init__
spade.AID.aid.__init__
spade.AMS.AMS.DefaultBehaviour.__init__
spade.AMS.AMS.ModifyBehaviour.__init__
spade.AMS.AMS.PlatformBehaviour.__init__
spade.AMS.AMS.RegisterBehaviour.__init__
spade.AMS.AMS.SearchBehaviour.__init__
spade.AMS.AMS.__init__
spade.AMS.AmsAgentDescription.__init__
spade.Agent.AbstractAgent.__init__
spade.Agent.Agent.__init__
spade.Agent.PlatformAgent.__init__
spade.Agent.jabberProcess.__init__
spade.BasicFipaDateTime.BasicFipaDateTime.__init__
spade.Behaviour.ACLTemplate.__init__
spade.Behaviour.ANDTemplate.__init__
spade.Behaviour.Behaviour.__init__
spade.Behaviour.BehaviourTemplate.__init__
spade.Behaviour.EventBehaviour.__init__
spade.Behaviour.FSMBehaviour.__init__
spade.Behaviour.MessageTemplate.__init__
spade.Behaviour.NOTTemplate.__init__
spade.Behaviour.ORTemplate.__init__
spade.Behaviour.OneShotBehaviour.__init__
spade.Behaviour.PeriodicBehaviour.__init__
spade.Behaviour.TimeOutBehaviour.__init__
spade.Behaviour.XORTemplate.__init__
spade.DF.DF.DefaultBehaviour.__init__
spade.DF.DF.ModifyBehaviour.__init__
spade.DF.DF.RegisterBehaviour.__init__
spade.DF.DF.SearchBehaviour.__init__
spade.DF.DF.__init__
spade.DF.DfAgentDescription.__init__
spade.DF.Service.__init__
spade.DF.ServiceDescription.__init__
spade.ECLiPSeKB.ECLiPSeKB.__init__
spade.Envelope.Envelope.__init__
spade.FIPAMessage.FipaMessage.__init__
spade.Flora2KB.Flora2KB.__init__
spade.MTP.MTP.__init__
spade.MessageReceiver.MessageReceiver.__init__
spade.Organization.BanedUser.__init__
spade.Organization.CreationError.__init__
spade.Organization.DestroyError.__init__
spade.Organization.JoinError.__init__
spade.Organization.LastOwner.__init__
spade.Organization.LockedOrganization.__init__
spade.Organization.MaximumUsers.__init__
spade.Organization.MemberOfFederation.__init__
spade.Organization.MembersOnly.__init__
spade.Organization.NickNameConflict.__init__
spade.Organization.NotOwner.__init__
spade.Organization.NotSupervisor.__init__
spade.Organization.NotValidGoal.__init__
spade.Organization.NotValidName.__init__
spade.Organization.NotValidType.__init__
spade.Organization.NotValidUnit.__init__
spade.Organization.Organization.CreateRoomBehaviour.__init__
spade.Organization.Organization.CreateTeamBehaviour.__init__
spade.Organization.Organization.DestroyBehaviour.__init__
spade.Organization.Organization.GetRegistrationFormBehaviour.__init__
spade.Organization.Organization.GetUnitInfoBehaviour.__init__
spade.Organization.Organization.GetUnitListBehaviour.__init__
spade.Organization.Organization.IsMemberBehaviour.__init__
spade.Organization.Organization.MyJoinRoomBehaviour.__init__
spade.Organization.Organization.SendRegistrationFormBehaviour.__init__
spade.Organization.Organization.TestRoomNameBehaviour.__init__
spade.Organization.Organization.__init__
spade.Organization.PaswordNeeded.__init__
spade.Organization.Unavailable.__init__
spade.Organization.UnavailableFunction.__init__
spade.Organization_new.BanedUser.__init__
spade.Organization_new.CreationError.__init__
spade.Organization_new.DestroyError.__init__
spade.Organization_new.JoinError.__init__
spade.Organization_new.LastOwner.__init__
spade.Organization_new.LockedOrganization.__init__
spade.Organization_new.MaximumUsers.__init__
spade.Organization_new.MemberOfFederation.__init__
spade.Organization_new.MembersOnly.__init__
spade.Organization_new.NickNameConflict.__init__
spade.Organization_new.NotCreatePermision.__init__
spade.Organization_new.NotSupervisor.__init__
spade.Organization_new.NotValidGoal.__init__
spade.Organization_new.NotValidName.__init__
spade.Organization_new.NotValidType.__init__
spade.Organization_new.NotValidUnit.__init__
spade.Organization_new.Organization_new.CreateRoomBehaviour.__init__
spade.Organization_new.Organization_new.CreateTeamBehaviour.__init__
spade.Organization_new.Organization_new.DestroyBehaviour.__init__
spade.Organization_new.Organization_new.GetRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitInfoBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitListBehaviour.__init__
spade.Organization_new.Organization_new.IsMemberBehaviour.__init__
spade.Organization_new.Organization_new.MyJoinRoomBehaviour.__init__
spade.Organization_new.Organization_new.SendRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.TestRoomNameBehaviour.__init__
spade.Organization_new.Organization_new.__init__
spade.Organization_new.PaswordNeeded.__init__
spade.Organization_new.Unavailable.__init__
spade.Organization_new.UnavailableFunction.__init__
spade.Platform.PlatformRestart.__init__
spade.Platform.SpadePlatform.RouteBehaviour.__init__
spade.Platform.SpadePlatform.__init__
spade.RDF0Parser.RDF0Parser.__init__
spade.RPC.RPCClientBehaviour.__init__
spade.ReceivedObject.ReceivedObject.__init__
spade.SIMBA.SIMBA.OutboxBehaviour.__init__
spade.SIMBA.SIMBA.__init__
spade.SL0Parser.SL0Parser.__init__
spade.SPARQLKB.SPARQLKB.__init__
spade.SWIKB.SWIKB.__init__
spade.SpadeConfigParser.ConfigParser.__init__
spade.SpadeConfigParser.spadeXML.__init__
spade.SpadeConfigParser.spadeXMLHandler.__init__
spade.Unit.BanedUser.__init__
spade.Unit.CreationError.__init__
spade.Unit.DestroyError.__init__
spade.Unit.JoinError.__init__
spade.Unit.LastOwner.__init__
spade.Unit.LockedUnit.__init__
spade.Unit.MaximumUsers.__init__
spade.Unit.MembersOnly.__init__
spade.Unit.NickNameConflict.__init__
spade.Unit.NotAdmin.__init__
spade.Unit.NotSupervisor.__init__
spade.Unit.NotValidGoal.__init__
spade.Unit.NotValidGoalChange.__init__
spade.Unit.NotValidName.__init__
spade.Unit.NotValidType.__init__
spade.Unit.NotValidUnit.__init__
spade.Unit.PaswordNeeded.__init__
spade.Unit.Unavailable.__init__
spade.Unit.Unit.AddAdminBehaviour.__init__
spade.Unit.Unit.AddBanAgentBehaviour.__init__
spade.Unit.Unit.AddModeratorBehaviour.__init__
spade.Unit.Unit.AddOwnerBehaviour.__init__
spade.Unit.Unit.CreateRoomBehaviour.__init__
spade.Unit.Unit.DestroyBehaviour.__init__
spade.Unit.Unit.GetAdminListBehaviour.__init__
spade.Unit.Unit.GetBanAgentListBehaviour.__init__
spade.Unit.Unit.GetGoalBehaviour.__init__
spade.Unit.Unit.GetInfoBehaviour.__init__
spade.Unit.Unit.GetMaxAgentsBehaviour.__init__
spade.Unit.Unit.GetMemberListBehaviour.__init__
spade.Unit.Unit.GetMinAgentsBehaviour.__init__
spade.Unit.Unit.GetModeratorListBehaviour.__init__
spade.Unit.Unit.GetNumberOfAgentsBehaviour.__init__
spade.Unit.Unit.GetOwnerListBehaviour.__init__
spade.Unit.Unit.GiveVoiceBehaviour.__init__
spade.Unit.Unit.KickAgentBehaviour.__init__
spade.Unit.Unit.MyJoinRoomBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.__init__
spade.Unit.Unit.RemoveAdminBehaviour.__init__
spade.Unit.Unit.RemoveBanAgentBehaviour.__init__
spade.Unit.Unit.RemoveModeratorBehaviour.__init__
spade.Unit.Unit.RemoveOwnerBehaviour.__init__
spade.Unit.Unit.RevokeVoiceBehaviour.__init__
spade.Unit.Unit.SendMessageBehaviour.__init__
spade.Unit.Unit.SendPrivateMessageBehaviour.__init__
spade.Unit.Unit.SetGoalBehaviour.__init__
spade.Unit.Unit.SetMaxAgentsBehaviour.__init__
spade.Unit.Unit.SetMinAgentsBehaviour.__init__
spade.Unit.Unit.TestRoomNameBehaviour.__init__
spade.Unit.Unit.__init__
spade.Unit_new.BanedUser.__init__
spade.Unit_new.CreationError.__init__
spade.Unit_new.DestroyError.__init__
spade.Unit_new.JoinError.__init__
spade.Unit_new.LastOwner.__init__
spade.Unit_new.LockedUnit.__init__
spade.Unit_new.MaximumUsers.__init__
spade.Unit_new.MembersOnly.__init__
spade.Unit_new.NickNameConflict.__init__
spade.Unit_new.NotCreatePermision.__init__
spade.Unit_new.NotSupervisor.__init__
spade.Unit_new.NotValidGoal.__init__
spade.Unit_new.NotValidGoalChange.__init__
spade.Unit_new.NotValidName.__init__
spade.Unit_new.NotValidType.__init__
spade.Unit_new.NotValidUnit.__init__
spade.Unit_new.PaswordNeeded.__init__
spade.Unit_new.Unavailable.__init__
spade.Unit_new.Unit_new.AddAdminBehaviour.__init__
spade.Unit_new.Unit_new.AddBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.AddModeratorBehaviour.__init__
spade.Unit_new.Unit_new.CreateRoomBehaviour.__init__
spade.Unit_new.Unit_new.DestroyBehaviour.__init__
spade.Unit_new.Unit_new.GetAdminListBehaviour.__init__
spade.Unit_new.Unit_new.GetBanAgentListBehaviour.__init__
spade.Unit_new.Unit_new.GetGoalBehaviour.__init__
spade.Unit_new.Unit_new.GetInfoBehaviour.__init__
spade.Unit_new.Unit_new.GetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetMemberListBehaviour.__init__
spade.Unit_new.Unit_new.GetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetModeratorListBehaviour.__init__
spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetOwnerListBehaviour.__init__
spade.Unit_new.Unit_new.GiveVoiceBehaviour.__init__
spade.Unit_new.Unit_new.KickAgentBehaviour.__init__
spade.Unit_new.Unit_new.MyJoinRoomBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.__init__
spade.Unit_new.Unit_new.RemoveAdminBehaviour.__init__
spade.Unit_new.Unit_new.RemoveBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.RemoveModeratorBehaviour.__init__
spade.Unit_new.Unit_new.RevokeVoiceBehaviour.__init__
spade.Unit_new.Unit_new.SendMessageBehaviour.__init__
spade.Unit_new.Unit_new.SendPrivateMessageBehaviour.__init__
spade.Unit_new.Unit_new.SetGoalBehaviour.__init__
spade.Unit_new.Unit_new.SetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.SetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.TestRoomNameBehaviour.__init__
spade.Unit_new.Unit_new.__init__
spade.XMLCodec.XMLCodec.__init__
spade.XSBKB.XSBKB.__init__
spade.bdi.BDIBehaviour.__init__
spade.bdi.Goal.__init__
spade.content.ContentObject.__init__
spade.dblite.Base.__init__
spade.dblite.Index.__init__
spade.fipa.ModifyAgentBehaviour.__init__
spade.fipa.SearchAgentBehaviour.__init__
spade.fipa.deregisterServiceBehaviour.__init__
spade.fipa.getPlatformInfoBehaviour.__init__
spade.fipa.modifyServiceBehaviour.__init__
spade.fipa.registerServiceBehaviour.__init__
spade.fipa.searchServiceBehaviour.__init__
spade.kb.KB.__init__
spade.kb.KBConfigurationFailed.__init__
spade.logic.Expr.__init__
spade.logic.FolKB.__init__
spade.logic.KB.__init__
spade.logic.PropKB.__init__
spade.odict.odict.__init__
spade.peer2peer.RequestDiscoInfoBehav.__init__
spade.peer2peer.SendStreamInitiationBehav.__init__
spade.pubsub.PubSub.__init__
spade.pubsub.PubSub._sendAndReceiveBehav.__init__
spade.pygooglechart.Axis.__init__
spade.pygooglechart.BarChart.__init__
spade.pygooglechart.Chart.__init__
spade.pygooglechart.ChartGrammar.__init__
spade.pygooglechart.Data.__init__
spade.pygooglechart.GoogleOMeterChart.__init__
spade.pygooglechart.GroupedBarChart.__init__
spade.pygooglechart.LabelAxis.__init__
spade.pygooglechart.LineChart.__init__
spade.pygooglechart.MapChart.__init__
spade.pygooglechart.PieChart.__init__
spade.pygooglechart.QRChart.__init__
spade.pygooglechart.RangeAxis.__init__
spade.pyparsing.And.__init__
spade.pyparsing.CaselessLiteral.__init__
spade.pyparsing.CharsNotIn.__init__
spade.pyparsing.Combine.__init__
spade.pyparsing.Dict.__init__
spade.pyparsing.Each.__init__
spade.pyparsing.Empty.__init__
spade.pyparsing.FollowedBy.__init__
spade.pyparsing.Forward.__init__
spade.pyparsing.GoToColumn.__init__
spade.pyparsing.Group.__init__
spade.pyparsing.Keyword.__init__
spade.pyparsing.LineEnd.__init__
spade.pyparsing.LineStart.__init__
spade.pyparsing.Literal.__init__
spade.pyparsing.MatchFirst.__init__
spade.pyparsing.NoMatch.__init__
spade.pyparsing.NotAny.__init__
spade.pyparsing.Optional.__init__
spade.pyparsing.Or.__init__
spade.pyparsing.ParseBaseException.__init__
spade.pyparsing.ParseElementEnhance.__init__
spade.pyparsing.ParseExpression.__init__
spade.pyparsing.ParseResults.__init__
spade.pyparsing.ParserElement.__init__
spade.pyparsing.PositionToken.__init__
spade.pyparsing.RecursiveGrammarException.__init__
spade.pyparsing.SkipTo.__init__
spade.pyparsing.StringEnd.__init__
spade.pyparsing.StringStart.__init__
spade.pyparsing.Token.__init__
spade.pyparsing.TokenConverter.__init__
spade.pyparsing.Upcase.__init__
spade.pyparsing.White.__init__
spade.pyparsing.Word.__init__
spade.pyparsing.ZeroOrMore.__init__
spade.pyratemp.FileLoader.__init__
spade.pyratemp.Parser.__init__
spade.pyratemp.PseudoSandbox.__init__
spade.pyratemp.Renderer.__init__
spade.pyratemp.StringLoader.__init__
spade.pyratemp.Template.__init__
spade.pyratemp.TemplateBase.__init__
spade.pyratemp.TemplateEval.__init__
spade.pyratemp.TemplateParseError.__init__
spade.pyxf.eclipse.__init__
spade.pyxf.flora2.__init__
spade.pyxf.swipl.__init__
spade.pyxf.xsb.__init__
spade.socialnetwork.SocialItem.__init__
spade.spade_backend.SpadeBackend.__init__
spade.tbcbp.Case.__init__
spade.tbcbp.CaseDB.__init__
spade.tbcbp.Plan.__init__
spade.tbcbp.TBCBP.__init__
spade.wui.WUI.__init__
spade.xmpp.auth.Bind.__init__
spade.xmpp.auth.ComponentBind.__init__
spade.xmpp.auth.NonSASL.__init__
spade.xmpp.auth.SASL.__init__
spade.xmpp.browser.Browser.__init__
spade.xmpp.client.CommonClient.__init__
spade.xmpp.client.Component.__init__
spade.xmpp.client.PlugIn.__init__
spade.xmpp.commands.Command_Handler_Prototype.__init__
spade.xmpp.commands.Commands.__init__
spade.xmpp.commands.TestCommand.__init__
spade.xmpp.debug.Debug.__init__
spade.xmpp.debug.NoDebug.__init__
spade.xmpp.dispatcher.Dispatcher.__init__
spade.xmpp.filetransfer.IBB.__init__
spade.xmpp.protocol.DataField.__init__
spade.xmpp.protocol.DataForm.__init__
spade.xmpp.protocol.Error.__init__
spade.xmpp.protocol.ErrorNode.__init__
spade.xmpp.protocol.Iq.__init__
spade.xmpp.protocol.JID.__init__
spade.xmpp.protocol.Message.__init__
spade.xmpp.protocol.Presence.__init__
spade.xmpp.protocol.Protocol.__init__
spade.xmpp.roster.Roster.__init__
spade.xmpp.session.Session.__init__
spade.xmpp.simplexml.Node.__init__
spade.xmpp.simplexml.NodeBuilder.__init__
spade.xmpp.simplexml.T.__init__
spade.xmpp.transports.HTTPPROXYsocket.__init__
spade.xmpp.transports.TCPsocket.__init__
spade.xmpp.transports.error.__init__
spade.xmppd.modules.config.Config.__init__
spade.xmppd.modules.config.xmppdXML.__init__
spade.xmppd.modules.config.xmppdXMLHandler.__init__
spade.xmppd.modules.muc.BadPassword.__init__
spade.xmppd.modules.muc.Blacklisted.__init__
spade.xmppd.modules.muc.MaxUsers.__init__
spade.xmppd.modules.muc.NickLockedDown.__init__
spade.xmppd.modules.muc.NoVoice.__init__
spade.xmppd.modules.muc.NotAMember.__init__
spade.xmppd.modules.muc.Participant.__init__
spade.xmppd.modules.muc.Room.__init__
spade.xmppd.modules.muc.SerializableRoom.__init__
spade.xmppd.modules.pubsub.PSNode.__init__
spade.xmppd.modules.wq.Conflict.__init__
spade.xmppd.modules.wq.Group.__init__
spade.xmppd.modules.wq.ItemNotFound.__init__
spade.xmppd.xmppd.RPC_Client.__init__
spade.xmppd.xmppd.Server.__init__
spade.xmppd.xmppd.Session.__init__
spade.xmppd.xmppd.Session_Dummy.Stream.__init__
spade.xmppd.xmppd.Session_Dummy.__init__
spade.xmppd.xmppd.Socker_client.__init__
spade.xmppd.xmppd.fake_select.__init__
spade.xmppd.xmppd.fake_select.poll.__init__
spade.xmppd.xmppd.get_input.__init__
spade.xmppd.xmppd.localizer.__init__
spade.xmppd.xmppd.multisession_manager.__init__
spade.xmppd.xmppd.multisession_manager.multisession_thread.__init__" class="py-name" href="#" onclick="return doclink('link-728', '__init__', 'link-389');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-name">self</tt><tt class="py-op">)</tt> </tt>
</div><a name="get_input.run"></a><div id="get_input.run-def"><a name="L1447"></a><tt class="py-lineno">1447</tt> <a class="py-toggle" href="#" id="get_input.run-toggle" onclick="return toggle('get_input.run');">-</a><tt class="py-line">    <tt class="py-keyword">def</tt> <a class="py-def-name" href="spade.xmppd.xmppd.get_input-class.html#run">run</a><tt class="py-op">(</tt><tt class="py-param">self</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
</div><div id="get_input.run-collapsed" style="display:none;" pad="++++" indent="++++++++"></div><div id="get_input.run-expanded"><a name="L1448"></a><tt class="py-lineno">1448</tt>  <tt class="py-line">        <tt class="py-keyword">global</tt> <tt id="link-729" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-729', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> </tt>
<a name="L1449"></a><tt class="py-lineno">1449</tt>  <tt class="py-line">        <tt class="py-keyword">while</tt> <tt id="link-730" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-730', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L1450"></a><tt class="py-lineno">1450</tt>  <tt class="py-line">            <tt class="py-name">the_input</tt> <tt class="py-op">=</tt> <tt class="py-name">raw_input</tt><tt class="py-op">(</tt><tt class="py-string">""</tt><tt class="py-op">)</tt> </tt>
<a name="L1451"></a><tt class="py-lineno">1451</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">the_input</tt> <tt class="py-op">==</tt> <tt class="py-string">'restart'</tt><tt class="py-op">:</tt> </tt>
<a name="L1452"></a><tt class="py-lineno">1452</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-731" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-731', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Stand-by; Restarting entire server!'</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1453"></a><tt class="py-lineno">1453</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-732" class="py-name"><a title="spade.spade_backend.SpadeBackend.shutdown
spade.xmppd.xmppd.Server.shutdown" class="py-name" href="#" onclick="return doclink('link-732', 'shutdown', 'link-449');">shutdown</a></tt><tt class="py-op">(</tt><tt id="link-733" class="py-name"><a title="spade.Agent.STREAM_SYSTEM_SHUTDOWN
spade.MTP.STREAM_SYSTEM_SHUTDOWN
spade.Organization.STREAM_SYSTEM_SHUTDOWN
spade.Organization_new.STREAM_SYSTEM_SHUTDOWN
spade.Unit.STREAM_SYSTEM_SHUTDOWN
spade.Unit_new.STREAM_SYSTEM_SHUTDOWN
spade.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.socialnetwork.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.auth.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.browser.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.commands.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.dispatcher.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.features.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.filetransfer.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.protocol.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.transports.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.config.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.db_fake.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.dialback.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0077.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0078.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.message.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.muc.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.oob.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.router.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.stream.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.webadmin.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.wq.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.xmppd.STREAM_SYSTEM_SHUTDOWN" class="py-name" href="#" onclick="return doclink('link-733', 'STREAM_SYSTEM_SHUTDOWN', 'link-450');">STREAM_SYSTEM_SHUTDOWN</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1454"></a><tt class="py-lineno">1454</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-734" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-734', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Server has been shutdown, restarting NOW!'</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1455"></a><tt class="py-lineno">1455</tt>  <tt class="py-line">                <tt id="link-735" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-735', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">False</tt> </tt>
<a name="L1456"></a><tt class="py-lineno">1456</tt>  <tt class="py-line">                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-736" class="py-name"><a title="spade.ACLMessage.ACLMessage.__init__
spade.ACLParser.ACLParser.__init__
spade.ACLParser.ACLxmlParser.__init__
spade.AID.aid.__init__
spade.AMS.AMS.DefaultBehaviour.__init__
spade.AMS.AMS.ModifyBehaviour.__init__
spade.AMS.AMS.PlatformBehaviour.__init__
spade.AMS.AMS.RegisterBehaviour.__init__
spade.AMS.AMS.SearchBehaviour.__init__
spade.AMS.AMS.__init__
spade.AMS.AmsAgentDescription.__init__
spade.Agent.AbstractAgent.__init__
spade.Agent.Agent.__init__
spade.Agent.PlatformAgent.__init__
spade.Agent.jabberProcess.__init__
spade.BasicFipaDateTime.BasicFipaDateTime.__init__
spade.Behaviour.ACLTemplate.__init__
spade.Behaviour.ANDTemplate.__init__
spade.Behaviour.Behaviour.__init__
spade.Behaviour.BehaviourTemplate.__init__
spade.Behaviour.EventBehaviour.__init__
spade.Behaviour.FSMBehaviour.__init__
spade.Behaviour.MessageTemplate.__init__
spade.Behaviour.NOTTemplate.__init__
spade.Behaviour.ORTemplate.__init__
spade.Behaviour.OneShotBehaviour.__init__
spade.Behaviour.PeriodicBehaviour.__init__
spade.Behaviour.TimeOutBehaviour.__init__
spade.Behaviour.XORTemplate.__init__
spade.DF.DF.DefaultBehaviour.__init__
spade.DF.DF.ModifyBehaviour.__init__
spade.DF.DF.RegisterBehaviour.__init__
spade.DF.DF.SearchBehaviour.__init__
spade.DF.DF.__init__
spade.DF.DfAgentDescription.__init__
spade.DF.Service.__init__
spade.DF.ServiceDescription.__init__
spade.ECLiPSeKB.ECLiPSeKB.__init__
spade.Envelope.Envelope.__init__
spade.FIPAMessage.FipaMessage.__init__
spade.Flora2KB.Flora2KB.__init__
spade.MTP.MTP.__init__
spade.MessageReceiver.MessageReceiver.__init__
spade.Organization.BanedUser.__init__
spade.Organization.CreationError.__init__
spade.Organization.DestroyError.__init__
spade.Organization.JoinError.__init__
spade.Organization.LastOwner.__init__
spade.Organization.LockedOrganization.__init__
spade.Organization.MaximumUsers.__init__
spade.Organization.MemberOfFederation.__init__
spade.Organization.MembersOnly.__init__
spade.Organization.NickNameConflict.__init__
spade.Organization.NotOwner.__init__
spade.Organization.NotSupervisor.__init__
spade.Organization.NotValidGoal.__init__
spade.Organization.NotValidName.__init__
spade.Organization.NotValidType.__init__
spade.Organization.NotValidUnit.__init__
spade.Organization.Organization.CreateRoomBehaviour.__init__
spade.Organization.Organization.CreateTeamBehaviour.__init__
spade.Organization.Organization.DestroyBehaviour.__init__
spade.Organization.Organization.GetRegistrationFormBehaviour.__init__
spade.Organization.Organization.GetUnitInfoBehaviour.__init__
spade.Organization.Organization.GetUnitListBehaviour.__init__
spade.Organization.Organization.IsMemberBehaviour.__init__
spade.Organization.Organization.MyJoinRoomBehaviour.__init__
spade.Organization.Organization.SendRegistrationFormBehaviour.__init__
spade.Organization.Organization.TestRoomNameBehaviour.__init__
spade.Organization.Organization.__init__
spade.Organization.PaswordNeeded.__init__
spade.Organization.Unavailable.__init__
spade.Organization.UnavailableFunction.__init__
spade.Organization_new.BanedUser.__init__
spade.Organization_new.CreationError.__init__
spade.Organization_new.DestroyError.__init__
spade.Organization_new.JoinError.__init__
spade.Organization_new.LastOwner.__init__
spade.Organization_new.LockedOrganization.__init__
spade.Organization_new.MaximumUsers.__init__
spade.Organization_new.MemberOfFederation.__init__
spade.Organization_new.MembersOnly.__init__
spade.Organization_new.NickNameConflict.__init__
spade.Organization_new.NotCreatePermision.__init__
spade.Organization_new.NotSupervisor.__init__
spade.Organization_new.NotValidGoal.__init__
spade.Organization_new.NotValidName.__init__
spade.Organization_new.NotValidType.__init__
spade.Organization_new.NotValidUnit.__init__
spade.Organization_new.Organization_new.CreateRoomBehaviour.__init__
spade.Organization_new.Organization_new.CreateTeamBehaviour.__init__
spade.Organization_new.Organization_new.DestroyBehaviour.__init__
spade.Organization_new.Organization_new.GetRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitInfoBehaviour.__init__
spade.Organization_new.Organization_new.GetUnitListBehaviour.__init__
spade.Organization_new.Organization_new.IsMemberBehaviour.__init__
spade.Organization_new.Organization_new.MyJoinRoomBehaviour.__init__
spade.Organization_new.Organization_new.SendRegistrationFormBehaviour.__init__
spade.Organization_new.Organization_new.TestRoomNameBehaviour.__init__
spade.Organization_new.Organization_new.__init__
spade.Organization_new.PaswordNeeded.__init__
spade.Organization_new.Unavailable.__init__
spade.Organization_new.UnavailableFunction.__init__
spade.Platform.PlatformRestart.__init__
spade.Platform.SpadePlatform.RouteBehaviour.__init__
spade.Platform.SpadePlatform.__init__
spade.RDF0Parser.RDF0Parser.__init__
spade.RPC.RPCClientBehaviour.__init__
spade.ReceivedObject.ReceivedObject.__init__
spade.SIMBA.SIMBA.OutboxBehaviour.__init__
spade.SIMBA.SIMBA.__init__
spade.SL0Parser.SL0Parser.__init__
spade.SPARQLKB.SPARQLKB.__init__
spade.SWIKB.SWIKB.__init__
spade.SpadeConfigParser.ConfigParser.__init__
spade.SpadeConfigParser.spadeXML.__init__
spade.SpadeConfigParser.spadeXMLHandler.__init__
spade.Unit.BanedUser.__init__
spade.Unit.CreationError.__init__
spade.Unit.DestroyError.__init__
spade.Unit.JoinError.__init__
spade.Unit.LastOwner.__init__
spade.Unit.LockedUnit.__init__
spade.Unit.MaximumUsers.__init__
spade.Unit.MembersOnly.__init__
spade.Unit.NickNameConflict.__init__
spade.Unit.NotAdmin.__init__
spade.Unit.NotSupervisor.__init__
spade.Unit.NotValidGoal.__init__
spade.Unit.NotValidGoalChange.__init__
spade.Unit.NotValidName.__init__
spade.Unit.NotValidType.__init__
spade.Unit.NotValidUnit.__init__
spade.Unit.PaswordNeeded.__init__
spade.Unit.Unavailable.__init__
spade.Unit.Unit.AddAdminBehaviour.__init__
spade.Unit.Unit.AddBanAgentBehaviour.__init__
spade.Unit.Unit.AddModeratorBehaviour.__init__
spade.Unit.Unit.AddOwnerBehaviour.__init__
spade.Unit.Unit.CreateRoomBehaviour.__init__
spade.Unit.Unit.DestroyBehaviour.__init__
spade.Unit.Unit.GetAdminListBehaviour.__init__
spade.Unit.Unit.GetBanAgentListBehaviour.__init__
spade.Unit.Unit.GetGoalBehaviour.__init__
spade.Unit.Unit.GetInfoBehaviour.__init__
spade.Unit.Unit.GetMaxAgentsBehaviour.__init__
spade.Unit.Unit.GetMemberListBehaviour.__init__
spade.Unit.Unit.GetMinAgentsBehaviour.__init__
spade.Unit.Unit.GetModeratorListBehaviour.__init__
spade.Unit.Unit.GetNumberOfAgentsBehaviour.__init__
spade.Unit.Unit.GetOwnerListBehaviour.__init__
spade.Unit.Unit.GiveVoiceBehaviour.__init__
spade.Unit.Unit.KickAgentBehaviour.__init__
spade.Unit.Unit.MyJoinRoomBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit.Unit.PresenceBehaviour.__init__
spade.Unit.Unit.RemoveAdminBehaviour.__init__
spade.Unit.Unit.RemoveBanAgentBehaviour.__init__
spade.Unit.Unit.RemoveModeratorBehaviour.__init__
spade.Unit.Unit.RemoveOwnerBehaviour.__init__
spade.Unit.Unit.RevokeVoiceBehaviour.__init__
spade.Unit.Unit.SendMessageBehaviour.__init__
spade.Unit.Unit.SendPrivateMessageBehaviour.__init__
spade.Unit.Unit.SetGoalBehaviour.__init__
spade.Unit.Unit.SetMaxAgentsBehaviour.__init__
spade.Unit.Unit.SetMinAgentsBehaviour.__init__
spade.Unit.Unit.TestRoomNameBehaviour.__init__
spade.Unit.Unit.__init__
spade.Unit_new.BanedUser.__init__
spade.Unit_new.CreationError.__init__
spade.Unit_new.DestroyError.__init__
spade.Unit_new.JoinError.__init__
spade.Unit_new.LastOwner.__init__
spade.Unit_new.LockedUnit.__init__
spade.Unit_new.MaximumUsers.__init__
spade.Unit_new.MembersOnly.__init__
spade.Unit_new.NickNameConflict.__init__
spade.Unit_new.NotCreatePermision.__init__
spade.Unit_new.NotSupervisor.__init__
spade.Unit_new.NotValidGoal.__init__
spade.Unit_new.NotValidGoalChange.__init__
spade.Unit_new.NotValidName.__init__
spade.Unit_new.NotValidType.__init__
spade.Unit_new.NotValidUnit.__init__
spade.Unit_new.PaswordNeeded.__init__
spade.Unit_new.Unavailable.__init__
spade.Unit_new.Unit_new.AddAdminBehaviour.__init__
spade.Unit_new.Unit_new.AddBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.AddModeratorBehaviour.__init__
spade.Unit_new.Unit_new.CreateRoomBehaviour.__init__
spade.Unit_new.Unit_new.DestroyBehaviour.__init__
spade.Unit_new.Unit_new.GetAdminListBehaviour.__init__
spade.Unit_new.Unit_new.GetBanAgentListBehaviour.__init__
spade.Unit_new.Unit_new.GetGoalBehaviour.__init__
spade.Unit_new.Unit_new.GetInfoBehaviour.__init__
spade.Unit_new.Unit_new.GetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetMemberListBehaviour.__init__
spade.Unit_new.Unit_new.GetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetModeratorListBehaviour.__init__
spade.Unit_new.Unit_new.GetNumberOfAgentsBehaviour.__init__
spade.Unit_new.Unit_new.GetOwnerListBehaviour.__init__
spade.Unit_new.Unit_new.GiveVoiceBehaviour.__init__
spade.Unit_new.Unit_new.KickAgentBehaviour.__init__
spade.Unit_new.Unit_new.MyJoinRoomBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.MinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.PresenceBehaviour.__init__
spade.Unit_new.Unit_new.RemoveAdminBehaviour.__init__
spade.Unit_new.Unit_new.RemoveBanAgentBehaviour.__init__
spade.Unit_new.Unit_new.RemoveModeratorBehaviour.__init__
spade.Unit_new.Unit_new.RevokeVoiceBehaviour.__init__
spade.Unit_new.Unit_new.SendMessageBehaviour.__init__
spade.Unit_new.Unit_new.SendPrivateMessageBehaviour.__init__
spade.Unit_new.Unit_new.SetGoalBehaviour.__init__
spade.Unit_new.Unit_new.SetMaxAgentsBehaviour.__init__
spade.Unit_new.Unit_new.SetMinAgentsBehaviour.__init__
spade.Unit_new.Unit_new.TestRoomNameBehaviour.__init__
spade.Unit_new.Unit_new.__init__
spade.XMLCodec.XMLCodec.__init__
spade.XSBKB.XSBKB.__init__
spade.bdi.BDIBehaviour.__init__
spade.bdi.Goal.__init__
spade.content.ContentObject.__init__
spade.dblite.Base.__init__
spade.dblite.Index.__init__
spade.fipa.ModifyAgentBehaviour.__init__
spade.fipa.SearchAgentBehaviour.__init__
spade.fipa.deregisterServiceBehaviour.__init__
spade.fipa.getPlatformInfoBehaviour.__init__
spade.fipa.modifyServiceBehaviour.__init__
spade.fipa.registerServiceBehaviour.__init__
spade.fipa.searchServiceBehaviour.__init__
spade.kb.KB.__init__
spade.kb.KBConfigurationFailed.__init__
spade.logic.Expr.__init__
spade.logic.FolKB.__init__
spade.logic.KB.__init__
spade.logic.PropKB.__init__
spade.odict.odict.__init__
spade.peer2peer.RequestDiscoInfoBehav.__init__
spade.peer2peer.SendStreamInitiationBehav.__init__
spade.pubsub.PubSub.__init__
spade.pubsub.PubSub._sendAndReceiveBehav.__init__
spade.pygooglechart.Axis.__init__
spade.pygooglechart.BarChart.__init__
spade.pygooglechart.Chart.__init__
spade.pygooglechart.ChartGrammar.__init__
spade.pygooglechart.Data.__init__
spade.pygooglechart.GoogleOMeterChart.__init__
spade.pygooglechart.GroupedBarChart.__init__
spade.pygooglechart.LabelAxis.__init__
spade.pygooglechart.LineChart.__init__
spade.pygooglechart.MapChart.__init__
spade.pygooglechart.PieChart.__init__
spade.pygooglechart.QRChart.__init__
spade.pygooglechart.RangeAxis.__init__
spade.pyparsing.And.__init__
spade.pyparsing.CaselessLiteral.__init__
spade.pyparsing.CharsNotIn.__init__
spade.pyparsing.Combine.__init__
spade.pyparsing.Dict.__init__
spade.pyparsing.Each.__init__
spade.pyparsing.Empty.__init__
spade.pyparsing.FollowedBy.__init__
spade.pyparsing.Forward.__init__
spade.pyparsing.GoToColumn.__init__
spade.pyparsing.Group.__init__
spade.pyparsing.Keyword.__init__
spade.pyparsing.LineEnd.__init__
spade.pyparsing.LineStart.__init__
spade.pyparsing.Literal.__init__
spade.pyparsing.MatchFirst.__init__
spade.pyparsing.NoMatch.__init__
spade.pyparsing.NotAny.__init__
spade.pyparsing.Optional.__init__
spade.pyparsing.Or.__init__
spade.pyparsing.ParseBaseException.__init__
spade.pyparsing.ParseElementEnhance.__init__
spade.pyparsing.ParseExpression.__init__
spade.pyparsing.ParseResults.__init__
spade.pyparsing.ParserElement.__init__
spade.pyparsing.PositionToken.__init__
spade.pyparsing.RecursiveGrammarException.__init__
spade.pyparsing.SkipTo.__init__
spade.pyparsing.StringEnd.__init__
spade.pyparsing.StringStart.__init__
spade.pyparsing.Token.__init__
spade.pyparsing.TokenConverter.__init__
spade.pyparsing.Upcase.__init__
spade.pyparsing.White.__init__
spade.pyparsing.Word.__init__
spade.pyparsing.ZeroOrMore.__init__
spade.pyratemp.FileLoader.__init__
spade.pyratemp.Parser.__init__
spade.pyratemp.PseudoSandbox.__init__
spade.pyratemp.Renderer.__init__
spade.pyratemp.StringLoader.__init__
spade.pyratemp.Template.__init__
spade.pyratemp.TemplateBase.__init__
spade.pyratemp.TemplateEval.__init__
spade.pyratemp.TemplateParseError.__init__
spade.pyxf.eclipse.__init__
spade.pyxf.flora2.__init__
spade.pyxf.swipl.__init__
spade.pyxf.xsb.__init__
spade.socialnetwork.SocialItem.__init__
spade.spade_backend.SpadeBackend.__init__
spade.tbcbp.Case.__init__
spade.tbcbp.CaseDB.__init__
spade.tbcbp.Plan.__init__
spade.tbcbp.TBCBP.__init__
spade.wui.WUI.__init__
spade.xmpp.auth.Bind.__init__
spade.xmpp.auth.ComponentBind.__init__
spade.xmpp.auth.NonSASL.__init__
spade.xmpp.auth.SASL.__init__
spade.xmpp.browser.Browser.__init__
spade.xmpp.client.CommonClient.__init__
spade.xmpp.client.Component.__init__
spade.xmpp.client.PlugIn.__init__
spade.xmpp.commands.Command_Handler_Prototype.__init__
spade.xmpp.commands.Commands.__init__
spade.xmpp.commands.TestCommand.__init__
spade.xmpp.debug.Debug.__init__
spade.xmpp.debug.NoDebug.__init__
spade.xmpp.dispatcher.Dispatcher.__init__
spade.xmpp.filetransfer.IBB.__init__
spade.xmpp.protocol.DataField.__init__
spade.xmpp.protocol.DataForm.__init__
spade.xmpp.protocol.Error.__init__
spade.xmpp.protocol.ErrorNode.__init__
spade.xmpp.protocol.Iq.__init__
spade.xmpp.protocol.JID.__init__
spade.xmpp.protocol.Message.__init__
spade.xmpp.protocol.Presence.__init__
spade.xmpp.protocol.Protocol.__init__
spade.xmpp.roster.Roster.__init__
spade.xmpp.session.Session.__init__
spade.xmpp.simplexml.Node.__init__
spade.xmpp.simplexml.NodeBuilder.__init__
spade.xmpp.simplexml.T.__init__
spade.xmpp.transports.HTTPPROXYsocket.__init__
spade.xmpp.transports.TCPsocket.__init__
spade.xmpp.transports.error.__init__
spade.xmppd.modules.config.Config.__init__
spade.xmppd.modules.config.xmppdXML.__init__
spade.xmppd.modules.config.xmppdXMLHandler.__init__
spade.xmppd.modules.muc.BadPassword.__init__
spade.xmppd.modules.muc.Blacklisted.__init__
spade.xmppd.modules.muc.MaxUsers.__init__
spade.xmppd.modules.muc.NickLockedDown.__init__
spade.xmppd.modules.muc.NoVoice.__init__
spade.xmppd.modules.muc.NotAMember.__init__
spade.xmppd.modules.muc.Participant.__init__
spade.xmppd.modules.muc.Room.__init__
spade.xmppd.modules.muc.SerializableRoom.__init__
spade.xmppd.modules.pubsub.PSNode.__init__
spade.xmppd.modules.wq.Conflict.__init__
spade.xmppd.modules.wq.Group.__init__
spade.xmppd.modules.wq.ItemNotFound.__init__
spade.xmppd.xmppd.RPC_Client.__init__
spade.xmppd.xmppd.Server.__init__
spade.xmppd.xmppd.Session.__init__
spade.xmppd.xmppd.Session_Dummy.Stream.__init__
spade.xmppd.xmppd.Session_Dummy.__init__
spade.xmppd.xmppd.Socker_client.__init__
spade.xmppd.xmppd.fake_select.__init__
spade.xmppd.xmppd.fake_select.poll.__init__
spade.xmppd.xmppd.get_input.__init__
spade.xmppd.xmppd.localizer.__init__
spade.xmppd.xmppd.multisession_manager.__init__
spade.xmppd.xmppd.multisession_manager.multisession_thread.__init__" class="py-name" href="#" onclick="return doclink('link-736', '__init__', 'link-389');">__init__</a></tt><tt class="py-op">(</tt><tt class="py-op">[</tt><tt class="py-string">'always'</tt><tt class="py-op">]</tt><tt class="py-op">,</tt><tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L1457"></a><tt class="py-lineno">1457</tt>  <tt class="py-line"> </tt>
<a name="L1458"></a><tt class="py-lineno">1458</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">the_input</tt> <tt class="py-op">==</tt> <tt class="py-string">'sys_debug'</tt><tt class="py-op">:</tt> </tt>
<a name="L1459"></a><tt class="py-lineno">1459</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-name">sys</tt><tt class="py-op">.</tt><tt class="py-name">exc_info</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1460"></a><tt class="py-lineno">1460</tt>  <tt class="py-line">                <tt class="py-keyword">print</tt> <tt class="py-name">traceback</tt><tt class="py-op">.</tt><tt class="py-name">print_exc</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1461"></a><tt class="py-lineno">1461</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">the_input</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'restart'</tt><tt class="py-op">:</tt> </tt>
<a name="L1462"></a><tt class="py-lineno">1462</tt>  <tt class="py-line"> </tt>
<a name="L1463"></a><tt class="py-lineno">1463</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-737" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-737', 'modules', 'link-468');">modules</a></tt> </tt>
<a name="L1464"></a><tt class="py-lineno">1464</tt>  <tt class="py-line">                <tt class="py-name">reload</tt><tt class="py-op">(</tt><tt id="link-738" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-738', 'modules', 'link-468');">modules</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1465"></a><tt class="py-lineno">1465</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">addon</tt> <tt class="py-keyword">in</tt> <tt id="link-739" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-739', 'modules', 'link-468');">modules</a></tt><tt class="py-op">.</tt><tt id="link-740" class="py-name"><a title="spade.xmppd.modules.addons" class="py-name" href="#" onclick="return doclink('link-740', 'addons', 'link-471');">addons</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1466"></a><tt class="py-lineno">1466</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">the_input</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1467"></a><tt class="py-lineno">1467</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">issubclass</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">,</tt><tt id="link-741" class="py-name"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-741', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1468"></a><tt class="py-lineno">1468</tt>  <tt class="py-line">                            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1469"></a><tt class="py-lineno">1469</tt>  <tt class="py-line">            <tt class="py-comment">#                    self.DEBUG('server','Plugging-out?','info')</tt> </tt>
<a name="L1470"></a><tt class="py-lineno">1470</tt>  <tt class="py-line"> </tt>
<a name="L1471"></a><tt class="py-lineno">1471</tt>  <tt class="py-line">                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-742" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-742', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Plugging %s out of %s.'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">s</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'stop'</tt><tt class="py-op">)</tt> </tt>
<a name="L1472"></a><tt class="py-lineno">1472</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">DBG_LINE</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">:</tt> </tt>
<a name="L1473"></a><tt class="py-lineno">1473</tt>  <tt class="py-line">                                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">.</tt><tt id="link-743" class="py-name"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-743', 'remove', 'link-180');">remove</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">DBG_LINE</tt><tt class="py-op">)</tt> </tt>
<a name="L1474"></a><tt class="py-lineno">1474</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_exported_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1475"></a><tt class="py-lineno">1475</tt>  <tt class="py-line">                                    <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_exported_methods</tt><tt class="py-op">:</tt> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1476"></a><tt class="py-lineno">1476</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_old_owners_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1477"></a><tt class="py-lineno">1477</tt>  <tt class="py-line">                                    <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_old_owners_methods</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">method</tt> </tt>
<a name="L1478"></a><tt class="py-lineno">1478</tt>  <tt class="py-line">                                <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1479"></a><tt class="py-lineno">1479</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'plugout'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-744" class="py-name"><a title="spade.xmpp.auth.Bind.plugout
spade.xmpp.auth.ComponentBind.plugout
spade.xmpp.auth.SASL.plugout
spade.xmpp.browser.Browser.plugout
spade.xmpp.commands.Command_Handler_Prototype.plugout
spade.xmpp.commands.Commands.plugout
spade.xmpp.dispatcher.Dispatcher.plugout
spade.xmpp.transports.TCPsocket.plugout
spade.xmpp.transports.TLS.plugout
spade.xmppd.modules.message.MessageCatcher.plugout
spade.xmppd.modules.webadmin.WebAdmin.plugout" class="py-name" href="#" onclick="return doclink('link-744', 'plugout', 'link-474');">plugout</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1480"></a><tt class="py-lineno">1480</tt>  <tt class="py-line">                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-745" class="py-name"><a title="spade.xmpp.session.Session.unfeature
spade.xmppd.xmppd.Server.unfeature
spade.xmppd.xmppd.Session.unfeature" class="py-name" href="#" onclick="return doclink('link-745', 'unfeature', 'link-284');">unfeature</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">.</tt><tt id="link-746" class="py-name"><a title="spade.xmppd.modules.config.Config.NS
spade.xmppd.modules.db_fake.AUTH.NS
spade.xmppd.modules.db_fake.DB.NS
spade.xmppd.modules.dialback.Dialback.NS
spade.xmppd.modules.jep0077.IBR.NS
spade.xmppd.modules.jep0078.NSA.NS
spade.xmppd.modules.message.MessageCatcher.NS
spade.xmppd.modules.muc.MUC.NS
spade.xmppd.modules.oob.OOB.NS
spade.xmppd.modules.pubsub.PubSubServer.NS
spade.xmppd.modules.roster.ROSTER.NS
spade.xmppd.modules.router.Router.NS
spade.xmppd.modules.stream.Bind.NS
spade.xmppd.modules.stream.Handshake.NS
spade.xmppd.modules.stream.SASL.NS
spade.xmppd.modules.stream.Session.NS
spade.xmppd.modules.stream.TLS.NS
spade.xmppd.modules.webadmin.WebAdmin.NS
spade.xmppd.modules.wq.WQ.NS" class="py-name" href="#" onclick="return doclink('link-746', 'NS', 'link-478');">NS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1481"></a><tt class="py-lineno">1481</tt>  <tt class="py-line"> </tt>
<a name="L1482"></a><tt class="py-lineno">1482</tt>  <tt class="py-line">                                <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-747" class="py-name"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-747', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1483"></a><tt class="py-lineno">1483</tt>  <tt class="py-line">                            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1484"></a><tt class="py-lineno">1484</tt>  <tt class="py-line">                                <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-748" class="py-name"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-748', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1485"></a><tt class="py-lineno">1485</tt>  <tt class="py-line">                        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">addon</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1486"></a><tt class="py-lineno">1486</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-749" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-749', 'feature', 'link-117');">feature</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">.</tt><tt id="link-750" class="py-name"><a title="spade.xmppd.modules.config.Config.NS
spade.xmppd.modules.db_fake.AUTH.NS
spade.xmppd.modules.db_fake.DB.NS
spade.xmppd.modules.dialback.Dialback.NS
spade.xmppd.modules.jep0077.IBR.NS
spade.xmppd.modules.jep0078.NSA.NS
spade.xmppd.modules.message.MessageCatcher.NS
spade.xmppd.modules.muc.MUC.NS
spade.xmppd.modules.oob.OOB.NS
spade.xmppd.modules.pubsub.PubSubServer.NS
spade.xmppd.modules.roster.ROSTER.NS
spade.xmppd.modules.router.Router.NS
spade.xmppd.modules.stream.Bind.NS
spade.xmppd.modules.stream.Handshake.NS
spade.xmppd.modules.stream.SASL.NS
spade.xmppd.modules.stream.Session.NS
spade.xmppd.modules.stream.TLS.NS
spade.xmppd.modules.webadmin.WebAdmin.NS
spade.xmppd.modules.wq.WQ.NS" class="py-name" href="#" onclick="return doclink('link-750', 'NS', 'link-478');">NS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1487"></a><tt class="py-lineno">1487</tt>  <tt class="py-line"> </tt>
<a name="L1488"></a><tt class="py-lineno">1488</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">the_input</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'start'</tt><tt class="py-op">:</tt> </tt>
<a name="L1489"></a><tt class="py-lineno">1489</tt>  <tt class="py-line"> </tt>
<a name="L1490"></a><tt class="py-lineno">1490</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-751" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-751', 'modules', 'link-468');">modules</a></tt> </tt>
<a name="L1491"></a><tt class="py-lineno">1491</tt>  <tt class="py-line">                <tt class="py-name">reload</tt><tt class="py-op">(</tt><tt id="link-752" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-752', 'modules', 'link-468');">modules</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1492"></a><tt class="py-lineno">1492</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">addon</tt> <tt class="py-keyword">in</tt> <tt id="link-753" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-753', 'modules', 'link-468');">modules</a></tt><tt class="py-op">.</tt><tt id="link-754" class="py-name"><a title="spade.xmppd.modules.addons" class="py-name" href="#" onclick="return doclink('link-754', 'addons', 'link-471');">addons</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1493"></a><tt class="py-lineno">1493</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">the_input</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1494"></a><tt class="py-lineno">1494</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">issubclass</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">,</tt><tt id="link-755" class="py-name"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-755', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1495"></a><tt class="py-lineno">1495</tt>  <tt class="py-line">                            <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-756" class="py-name"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-756', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1496"></a><tt class="py-lineno">1496</tt>  <tt class="py-line">                        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">addon</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1497"></a><tt class="py-lineno">1497</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-757" class="py-name"><a title="spade.xmpp.session.Session.feature
spade.xmppd.xmppd.Server.feature
spade.xmppd.xmppd.Session.feature" class="py-name" href="#" onclick="return doclink('link-757', 'feature', 'link-117');">feature</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">.</tt><tt id="link-758" class="py-name"><a title="spade.xmppd.modules.config.Config.NS
spade.xmppd.modules.db_fake.AUTH.NS
spade.xmppd.modules.db_fake.DB.NS
spade.xmppd.modules.dialback.Dialback.NS
spade.xmppd.modules.jep0077.IBR.NS
spade.xmppd.modules.jep0078.NSA.NS
spade.xmppd.modules.message.MessageCatcher.NS
spade.xmppd.modules.muc.MUC.NS
spade.xmppd.modules.oob.OOB.NS
spade.xmppd.modules.pubsub.PubSubServer.NS
spade.xmppd.modules.roster.ROSTER.NS
spade.xmppd.modules.router.Router.NS
spade.xmppd.modules.stream.Bind.NS
spade.xmppd.modules.stream.Handshake.NS
spade.xmppd.modules.stream.SASL.NS
spade.xmppd.modules.stream.Session.NS
spade.xmppd.modules.stream.TLS.NS
spade.xmppd.modules.webadmin.WebAdmin.NS
spade.xmppd.modules.wq.WQ.NS" class="py-name" href="#" onclick="return doclink('link-758', 'NS', 'link-478');">NS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1498"></a><tt class="py-lineno">1498</tt>  <tt class="py-line"> </tt>
<a name="L1499"></a><tt class="py-lineno">1499</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">the_input</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">0</tt><tt class="py-op">]</tt> <tt class="py-op">==</tt> <tt class="py-string">'stop'</tt><tt class="py-op">:</tt> </tt>
<a name="L1500"></a><tt class="py-lineno">1500</tt>  <tt class="py-line"> </tt>
<a name="L1501"></a><tt class="py-lineno">1501</tt>  <tt class="py-line">                <tt class="py-keyword">import</tt> <tt id="link-759" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-759', 'modules', 'link-468');">modules</a></tt> </tt>
<a name="L1502"></a><tt class="py-lineno">1502</tt>  <tt class="py-line">                <tt class="py-name">reload</tt><tt class="py-op">(</tt><tt id="link-760" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-760', 'modules', 'link-468');">modules</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1503"></a><tt class="py-lineno">1503</tt>  <tt class="py-line">                <tt class="py-keyword">for</tt> <tt class="py-name">addon</tt> <tt class="py-keyword">in</tt> <tt id="link-761" class="py-name"><a title="spade.xmppd.modules" class="py-name" href="#" onclick="return doclink('link-761', 'modules', 'link-468');">modules</a></tt><tt class="py-op">.</tt><tt id="link-762" class="py-name"><a title="spade.xmppd.modules.addons" class="py-name" href="#" onclick="return doclink('link-762', 'addons', 'link-471');">addons</a></tt><tt class="py-op">:</tt> </tt>
<a name="L1504"></a><tt class="py-lineno">1504</tt>  <tt class="py-line">                    <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">the_input</tt><tt class="py-op">.</tt><tt class="py-name">split</tt><tt class="py-op">(</tt><tt class="py-string">' '</tt><tt class="py-op">)</tt><tt class="py-op">[</tt><tt class="py-number">1</tt><tt class="py-op">]</tt><tt class="py-op">.</tt><tt class="py-name">lower</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1505"></a><tt class="py-lineno">1505</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">issubclass</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">,</tt><tt id="link-763" class="py-name"><a title="spade.xmpp.client.PlugIn
spade.xmpp.client.PlugIn.PlugIn
spade.xmpp.transports.TLS.PlugIn" class="py-name" href="#" onclick="return doclink('link-763', 'PlugIn', 'link-475');">PlugIn</a></tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1506"></a><tt class="py-lineno">1506</tt>  <tt class="py-line">                            <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> </tt>
<a name="L1507"></a><tt class="py-lineno">1507</tt>  <tt class="py-line">            <tt class="py-comment">#                    self.DEBUG('server','Plugging-out?','info')</tt> </tt>
<a name="L1508"></a><tt class="py-lineno">1508</tt>  <tt class="py-line"> </tt>
<a name="L1509"></a><tt class="py-lineno">1509</tt>  <tt class="py-line">                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-764" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-764', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Plugging %s out of %s.'</tt><tt class="py-op">%</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-name">s</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'stop'</tt><tt class="py-op">)</tt> </tt>
<a name="L1510"></a><tt class="py-lineno">1510</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">DBG_LINE</tt> <tt class="py-keyword">in</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">:</tt> </tt>
<a name="L1511"></a><tt class="py-lineno">1511</tt>  <tt class="py-line">                                    <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">debug_flags</tt><tt class="py-op">.</tt><tt id="link-765" class="py-name"><a title="spade.FlexQueue.FlexQueue.remove" class="py-name" href="#" onclick="return doclink('link-765', 'remove', 'link-180');">remove</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">DBG_LINE</tt><tt class="py-op">)</tt> </tt>
<a name="L1512"></a><tt class="py-lineno">1512</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_exported_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1513"></a><tt class="py-lineno">1513</tt>  <tt class="py-line">                                    <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_exported_methods</tt><tt class="py-op">:</tt> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1514"></a><tt class="py-lineno">1514</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_old_owners_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1515"></a><tt class="py-lineno">1515</tt>  <tt class="py-line">                                    <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_old_owners_methods</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">method</tt> </tt>
<a name="L1516"></a><tt class="py-lineno">1516</tt>  <tt class="py-line">                                <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1517"></a><tt class="py-lineno">1517</tt>  <tt class="py-line">                                <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'plugout'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-766" class="py-name"><a title="spade.xmpp.auth.Bind.plugout
spade.xmpp.auth.ComponentBind.plugout
spade.xmpp.auth.SASL.plugout
spade.xmpp.browser.Browser.plugout
spade.xmpp.commands.Command_Handler_Prototype.plugout
spade.xmpp.commands.Commands.plugout
spade.xmpp.dispatcher.Dispatcher.plugout
spade.xmpp.transports.TCPsocket.plugout
spade.xmpp.transports.TLS.plugout
spade.xmppd.modules.message.MessageCatcher.plugout
spade.xmppd.modules.webadmin.WebAdmin.plugout" class="py-name" href="#" onclick="return doclink('link-766', 'plugout', 'link-474');">plugout</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1518"></a><tt class="py-lineno">1518</tt>  <tt class="py-line">                            <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1519"></a><tt class="py-lineno">1519</tt>  <tt class="py-line">                                <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-767" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-767', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Error: Could not un-plug %s'</tt><tt class="py-op">%</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L1520"></a><tt class="py-lineno">1520</tt>  <tt class="py-line">                        <tt class="py-keyword">else</tt><tt class="py-op">:</tt> </tt>
<a name="L1521"></a><tt class="py-lineno">1521</tt>  <tt class="py-line">                            <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_exported_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1522"></a><tt class="py-lineno">1522</tt>  <tt class="py-line">                                <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_exported_methods</tt><tt class="py-op">:</tt> <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1523"></a><tt class="py-lineno">1523</tt>  <tt class="py-line">                            <tt class="py-keyword">if</tt> <tt class="py-name">getattr</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'_old_owners_methods'</tt><tt class="py-op">,</tt><tt class="py-name">None</tt><tt class="py-op">)</tt> <tt class="py-op">!=</tt> <tt class="py-name">None</tt><tt class="py-op">:</tt> </tt>
<a name="L1524"></a><tt class="py-lineno">1524</tt>  <tt class="py-line">                                <tt class="py-keyword">for</tt> <tt class="py-name">method</tt> <tt class="py-keyword">in</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">_old_owners_methods</tt><tt class="py-op">:</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">method</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt><tt class="py-op">=</tt><tt class="py-name">method</tt> </tt>
<a name="L1525"></a><tt class="py-lineno">1525</tt>  <tt class="py-line">                            <tt class="py-keyword">del</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">[</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">]</tt> </tt>
<a name="L1526"></a><tt class="py-lineno">1526</tt>  <tt class="py-line">                            <tt class="py-keyword">if</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-string">'plugout'</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-768" class="py-name"><a title="spade.xmpp.auth.Bind.plugout
spade.xmpp.auth.ComponentBind.plugout
spade.xmpp.auth.SASL.plugout
spade.xmpp.browser.Browser.plugout
spade.xmpp.commands.Command_Handler_Prototype.plugout
spade.xmpp.commands.Commands.plugout
spade.xmpp.dispatcher.Dispatcher.plugout
spade.xmpp.transports.TCPsocket.plugout
spade.xmpp.transports.TLS.plugout
spade.xmppd.modules.message.MessageCatcher.plugout
spade.xmppd.modules.webadmin.WebAdmin.plugout" class="py-name" href="#" onclick="return doclink('link-768', 'plugout', 'link-474');">plugout</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1527"></a><tt class="py-lineno">1527</tt>  <tt class="py-line">                        <tt class="py-keyword">if</tt> <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt class="py-name">__dict__</tt><tt class="py-op">.</tt><tt class="py-name">has_key</tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">)</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> </tt>
<a name="L1528"></a><tt class="py-lineno">1528</tt>  <tt class="py-line">                            <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-769" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-769', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-string">'Error: Could not un-plug %s'</tt><tt class="py-op">%</tt><tt class="py-name">addon</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt class="py-name">__class__</tt><tt class="py-op">.</tt><tt class="py-name">__name__</tt><tt class="py-op">,</tt><tt class="py-string">'error'</tt><tt class="py-op">)</tt> </tt>
<a name="L1529"></a><tt class="py-lineno">1529</tt>  <tt class="py-line">                        <tt class="py-name">self</tt><tt class="py-op">.</tt><tt class="py-name">_owner</tt><tt class="py-op">.</tt><tt id="link-770" class="py-name"><a title="spade.xmpp.session.Session.unfeature
spade.xmppd.xmppd.Server.unfeature
spade.xmppd.xmppd.Session.unfeature" class="py-name" href="#" onclick="return doclink('link-770', 'unfeature', 'link-284');">unfeature</a></tt><tt class="py-op">(</tt><tt class="py-name">addon</tt><tt class="py-op">.</tt><tt id="link-771" class="py-name"><a title="spade.xmppd.modules.config.Config.NS
spade.xmppd.modules.db_fake.AUTH.NS
spade.xmppd.modules.db_fake.DB.NS
spade.xmppd.modules.dialback.Dialback.NS
spade.xmppd.modules.jep0077.IBR.NS
spade.xmppd.modules.jep0078.NSA.NS
spade.xmppd.modules.message.MessageCatcher.NS
spade.xmppd.modules.muc.MUC.NS
spade.xmppd.modules.oob.OOB.NS
spade.xmppd.modules.pubsub.PubSubServer.NS
spade.xmppd.modules.roster.ROSTER.NS
spade.xmppd.modules.router.Router.NS
spade.xmppd.modules.stream.Bind.NS
spade.xmppd.modules.stream.Handshake.NS
spade.xmppd.modules.stream.SASL.NS
spade.xmppd.modules.stream.Session.NS
spade.xmppd.modules.stream.TLS.NS
spade.xmppd.modules.webadmin.WebAdmin.NS
spade.xmppd.modules.wq.WQ.NS" class="py-name" href="#" onclick="return doclink('link-771', 'NS', 'link-478');">NS</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1530"></a><tt class="py-lineno">1530</tt>  <tt class="py-line"> </tt>
<a name="L1531"></a><tt class="py-lineno">1531</tt>  <tt class="py-line">            <tt class="py-keyword">elif</tt> <tt class="py-name">the_input</tt> <tt class="py-op">==</tt> <tt class="py-string">'quit'</tt><tt class="py-op">:</tt> </tt>
<a name="L1532"></a><tt class="py-lineno">1532</tt>  <tt class="py-line">                <tt id="link-772" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-772', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L1533"></a><tt class="py-lineno">1533</tt>  <tt class="py-line">                <tt id="link-773" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-773', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">abort</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1534"></a><tt class="py-lineno">1534</tt>  <tt class="py-line">                <tt class="py-keyword">break</tt> </tt>
<a name="L1535"></a><tt class="py-lineno">1535</tt>  <tt class="py-line">            <tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">sleep</tt><tt class="py-op">(</tt><tt class="py-number">.01</tt><tt class="py-op">)</tt> </tt>
</div></div><a name="L1536"></a><tt class="py-lineno">1536</tt>  <tt class="py-line"> </tt>
<a name="L1537"></a><tt class="py-lineno">1537</tt>  <tt class="py-line"><tt class="py-keyword">if</tt> <tt class="py-name">__name__</tt><tt class="py-op">==</tt><tt class="py-string">'__main__'</tt><tt class="py-op">:</tt> </tt>
<a name="L1538"></a><tt class="py-lineno">1538</tt>  <tt class="py-line"> </tt>
<a name="L1539"></a><tt class="py-lineno">1539</tt>  <tt class="py-line">        <tt class="py-keyword">from</tt> <tt class="py-name">optparse</tt> <tt class="py-keyword">import</tt> <tt class="py-name">OptionParser</tt> </tt>
<a name="L1540"></a><tt class="py-lineno">1540</tt>  <tt class="py-line"> </tt>
<a name="L1541"></a><tt class="py-lineno">1541</tt>  <tt class="py-line">        <tt class="py-name">parser</tt> <tt class="py-op">=</tt> <tt class="py-name">OptionParser</tt><tt class="py-op">(</tt><tt class="py-name">usage</tt><tt class="py-op">=</tt><tt class="py-string">"%prog [options] [-l lang_code] [--hostname=HOST] [-s host[:ip]]"</tt><tt class="py-op">,</tt><tt class="py-name">version</tt><tt class="py-op">=</tt><tt class="py-string">"%%prog %s"</tt><tt class="py-op">%</tt><tt id="link-774" class="py-name"><a title="spade.xmpp.session.__version__" class="py-name" href="#" onclick="return doclink('link-774', '__version__', 'link-0');">__version__</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1542"></a><tt class="py-lineno">1542</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"-p"</tt><tt class="py-op">,</tt> <tt class="py-string">"--psyco"</tt><tt class="py-op">,</tt> </tt>
<a name="L1543"></a><tt class="py-lineno">1543</tt>  <tt class="py-line">                <tt class="py-name">action</tt><tt class="py-op">=</tt><tt class="py-string">"store_true"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"enable_psyco"</tt><tt class="py-op">,</tt> </tt>
<a name="L1544"></a><tt class="py-lineno">1544</tt>  <tt class="py-line">                <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Enable PsyCo"</tt><tt class="py-op">)</tt> </tt>
<a name="L1545"></a><tt class="py-lineno">1545</tt>  <tt class="py-line"> </tt>
<a name="L1546"></a><tt class="py-lineno">1546</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"--nofallback"</tt><tt class="py-op">,</tt> </tt>
<a name="L1547"></a><tt class="py-lineno">1547</tt>  <tt class="py-line">                <tt class="py-name">action</tt><tt class="py-op">=</tt><tt class="py-string">"store_true"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"disable_fallback"</tt><tt class="py-op">,</tt> </tt>
<a name="L1548"></a><tt class="py-lineno">1548</tt>  <tt class="py-line">                <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Disables fallback support (Upon a major error, the server will not try to restart itself.)"</tt><tt class="py-op">)</tt> </tt>
<a name="L1549"></a><tt class="py-lineno">1549</tt>  <tt class="py-line"> </tt>
<a name="L1550"></a><tt class="py-lineno">1550</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">'-l'</tt><tt class="py-op">,</tt><tt class="py-string">"--lang"</tt><tt class="py-op">,</tt> <tt class="py-name">metavar</tt><tt class="py-op">=</tt><tt class="py-string">"lang_code"</tt><tt class="py-op">,</tt> <tt class="py-name">default</tt><tt class="py-op">=</tt><tt class="py-string">'en'</tt><tt class="py-op">,</tt><tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"language"</tt><tt class="py-op">,</tt> </tt>
<a name="L1551"></a><tt class="py-lineno">1551</tt>  <tt class="py-line">                    <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Used to explicitly set the daemon's default language."</tt><tt class="py-op">)</tt> </tt>
<a name="L1552"></a><tt class="py-lineno">1552</tt>  <tt class="py-line"> </tt>
<a name="L1553"></a><tt class="py-lineno">1553</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"-d"</tt><tt class="py-op">,</tt> <tt class="py-string">"--debug"</tt><tt class="py-op">,</tt> </tt>
<a name="L1554"></a><tt class="py-lineno">1554</tt>  <tt class="py-line">                <tt class="py-name">action</tt><tt class="py-op">=</tt><tt class="py-string">"store_true"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"enable_debug"</tt><tt class="py-op">,</tt> </tt>
<a name="L1555"></a><tt class="py-lineno">1555</tt>  <tt class="py-line">                <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Enables debug messaging to console"</tt><tt class="py-op">)</tt> </tt>
<a name="L1556"></a><tt class="py-lineno">1556</tt>  <tt class="py-line"> </tt>
<a name="L1557"></a><tt class="py-lineno">1557</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"--hostname"</tt><tt class="py-op">,</tt> <tt class="py-name">metavar</tt><tt class="py-op">=</tt><tt class="py-string">"HOST"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"hostname"</tt><tt class="py-op">,</tt> </tt>
<a name="L1558"></a><tt class="py-lineno">1558</tt>  <tt class="py-line">                    <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Used to explicitly set the hostname or IP of this daemon."</tt><tt class="py-op">)</tt> </tt>
<a name="L1559"></a><tt class="py-lineno">1559</tt>  <tt class="py-line"> </tt>
<a name="L1560"></a><tt class="py-lineno">1560</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"--password"</tt><tt class="py-op">,</tt> <tt class="py-name">metavar</tt><tt class="py-op">=</tt><tt class="py-string">"PASSWD"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"password"</tt><tt class="py-op">,</tt> </tt>
<a name="L1561"></a><tt class="py-lineno">1561</tt>  <tt class="py-line">                    <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Sets the default password for this node/daemon."</tt>\ </tt>
<a name="L1562"></a><tt class="py-lineno">1562</tt>  <tt class="py-line">                    <tt class="py-string">"(The password is generated, otherwise.)"</tt><tt class="py-op">)</tt> </tt>
<a name="L1563"></a><tt class="py-lineno">1563</tt>  <tt class="py-line"> </tt>
<a name="L1564"></a><tt class="py-lineno">1564</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">'-s'</tt><tt class="py-op">,</tt><tt class="py-string">"--socker"</tt><tt class="py-op">,</tt> <tt class="py-name">metavar</tt><tt class="py-op">=</tt><tt class="py-string">"host[:ip]"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"socker_info"</tt><tt class="py-op">,</tt> </tt>
<a name="L1565"></a><tt class="py-lineno">1565</tt>  <tt class="py-line">                    <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Enables, and connects to the host:ip "</tt> \ </tt>
<a name="L1566"></a><tt class="py-lineno">1566</tt>  <tt class="py-line">                    <tt class="py-string">"of a socker(tm) socket multiplexor. [EXPERIMENTAL]"</tt><tt class="py-op">)</tt> </tt>
<a name="L1567"></a><tt class="py-lineno">1567</tt>  <tt class="py-line"> </tt>
<a name="L1568"></a><tt class="py-lineno">1568</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">'-r'</tt><tt class="py-op">,</tt><tt class="py-string">"--router"</tt><tt class="py-op">,</tt> <tt class="py-name">metavar</tt><tt class="py-op">=</tt><tt class="py-string">"host[:ip]"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"router_info"</tt><tt class="py-op">,</tt> </tt>
<a name="L1569"></a><tt class="py-lineno">1569</tt>  <tt class="py-line">                    <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Enables, and connects to an outside router @ host:ip [EXPERIMENTAL]"</tt><tt class="py-op">)</tt> </tt>
<a name="L1570"></a><tt class="py-lineno">1570</tt>  <tt class="py-line"> </tt>
<a name="L1571"></a><tt class="py-lineno">1571</tt>  <tt class="py-line"> </tt>
<a name="L1572"></a><tt class="py-lineno">1572</tt>  <tt class="py-line">        <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">add_option</tt><tt class="py-op">(</tt><tt class="py-string">"-i"</tt><tt class="py-op">,</tt> </tt>
<a name="L1573"></a><tt class="py-lineno">1573</tt>  <tt class="py-line">                <tt class="py-name">action</tt><tt class="py-op">=</tt><tt class="py-string">"store_true"</tt><tt class="py-op">,</tt> <tt class="py-name">dest</tt><tt class="py-op">=</tt><tt class="py-string">"enable_interactive"</tt><tt class="py-op">,</tt> </tt>
<a name="L1574"></a><tt class="py-lineno">1574</tt>  <tt class="py-line">                <tt class="py-name">help</tt><tt class="py-op">=</tt><tt class="py-string">"Enables Interactive mode, allowing a console user to interactively edit the server in realtime."</tt><tt class="py-op">)</tt> </tt>
<a name="L1575"></a><tt class="py-lineno">1575</tt>  <tt class="py-line"> </tt>
<a name="L1576"></a><tt class="py-lineno">1576</tt>  <tt class="py-line">        <tt class="py-op">(</tt><tt class="py-name">cmd_options</tt><tt class="py-op">,</tt> <tt class="py-name">cmd_args</tt><tt class="py-op">)</tt> <tt class="py-op">=</tt> <tt class="py-name">parser</tt><tt class="py-op">.</tt><tt class="py-name">parse_args</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1577"></a><tt class="py-lineno">1577</tt>  <tt class="py-line"> </tt>
<a name="L1578"></a><tt class="py-lineno">1578</tt>  <tt class="py-line"> </tt>
<a name="L1579"></a><tt class="py-lineno">1579</tt>  <tt class="py-line">        <tt class="py-comment">#Create the xmppd server</tt> </tt>
<a name="L1580"></a><tt class="py-lineno">1580</tt>  <tt class="py-line">        <tt class="py-name">s</tt><tt class="py-op">=</tt><tt id="link-775" class="py-name"><a title="spade.xmppd.xmppd.Server" class="py-name" href="#" onclick="return doclink('link-775', 'Server', 'link-727');">Server</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1581"></a><tt class="py-lineno">1581</tt>  <tt class="py-line"><tt class="py-comment">#    s=Server(cmd_options=eval(str(cmd_options)))</tt> </tt>
<a name="L1582"></a><tt class="py-lineno">1582</tt>  <tt class="py-line"> </tt>
<a name="L1583"></a><tt class="py-lineno">1583</tt>  <tt class="py-line">        <tt class="py-name">inpt_service</tt> <tt class="py-op">=</tt> <tt id="link-776" class="py-name" targets="Class spade.xmppd.xmppd.get_input=spade.xmppd.xmppd.get_input-class.html"><a title="spade.xmppd.xmppd.get_input" class="py-name" href="#" onclick="return doclink('link-776', 'get_input', 'link-776');">get_input</a></tt><tt class="py-op">(</tt><tt class="py-name">s</tt><tt class="py-op">)</tt> </tt>
<a name="L1584"></a><tt class="py-lineno">1584</tt>  <tt class="py-line">        <tt class="py-name">inpt_service</tt><tt class="py-op">.</tt><tt class="py-name">setDaemon</tt><tt class="py-op">(</tt><tt class="py-name">True</tt><tt class="py-op">)</tt> </tt>
<a name="L1585"></a><tt class="py-lineno">1585</tt>  <tt class="py-line"> </tt>
<a name="L1586"></a><tt class="py-lineno">1586</tt>  <tt class="py-line">        <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt class="py-name">enable_interactive</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> <tt class="py-name">inpt_service</tt><tt class="py-op">.</tt><tt id="link-777" class="py-name"><a title="spade.spade_backend.SpadeBackend.start" class="py-name" href="#" onclick="return doclink('link-777', 'start', 'link-382');">start</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1587"></a><tt class="py-lineno">1587</tt>  <tt class="py-line">        <tt class="py-keyword">print</tt> <tt class="py-string">"Starting server . . ."</tt> </tt>
<a name="L1588"></a><tt class="py-lineno">1588</tt>  <tt class="py-line">        <tt class="py-keyword">while</tt> <tt id="link-778" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-778', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">==</tt> <tt class="py-name">False</tt><tt class="py-op">:</tt> </tt>
<a name="L1589"></a><tt class="py-lineno">1589</tt>  <tt class="py-line">            <tt class="py-keyword">try</tt><tt class="py-op">:</tt> </tt>
<a name="L1590"></a><tt class="py-lineno">1590</tt>  <tt class="py-line">                    <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-779" class="py-name" targets="Method spade.Agent.AbstractAgent.run()=spade.Agent.AbstractAgent-class.html#run,Method spade.Agent.jabberProcess.run()=spade.Agent.jabberProcess-class.html#run,Method spade.Behaviour.Behaviour.run()=spade.Behaviour.Behaviour-class.html#run,Method spade.Unit.Unit.run()=spade.Unit.Unit-class.html#run,Method spade.Unit_new.Unit_new.run()=spade.Unit_new.Unit_new-class.html#run,Method spade.wui.WUI.run()=spade.wui.WUI-class.html#run,Method spade.xmppd.xmppd.Server.run()=spade.xmppd.xmppd.Server-class.html#run,Method spade.xmppd.xmppd.get_input.run()=spade.xmppd.xmppd.get_input-class.html#run,Method spade.xmppd.xmppd.multisession_manager.multisession_thread.run()=spade.xmppd.xmppd.multisession_manager.multisession_thread-class.html#run"><a title="spade.Agent.AbstractAgent.run
spade.Agent.jabberProcess.run
spade.Behaviour.Behaviour.run
spade.Unit.Unit.run
spade.Unit_new.Unit_new.run
spade.wui.WUI.run
spade.xmppd.xmppd.Server.run
spade.xmppd.xmppd.get_input.run
spade.xmppd.xmppd.multisession_manager.multisession_thread.run" class="py-name" href="#" onclick="return doclink('link-779', 'run', 'link-779');">run</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1591"></a><tt class="py-lineno">1591</tt>  <tt class="py-line"><tt class="py-comment">#            s.DEBUG('server',s._l(SERVER_SHUTDOWN_MSG),'info')</tt> </tt>
<a name="L1592"></a><tt class="py-lineno">1592</tt>  <tt class="py-line"><tt class="py-comment">#            s.shutdown(STREAM_SYSTEM_SHUTDOWN)</tt> </tt>
<a name="L1593"></a><tt class="py-lineno">1593</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt> <tt class="py-name">KeyboardInterrupt</tt><tt class="py-op">:</tt> </tt>
<a name="L1594"></a><tt class="py-lineno">1594</tt>  <tt class="py-line">                    <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-780" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-780', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">'server'</tt><tt class="py-op">,</tt><tt class="py-name">s</tt><tt class="py-op">.</tt><tt class="py-name">_l</tt><tt class="py-op">(</tt><tt class="py-name">SERVER_SHUTDOWN_MSG</tt><tt class="py-op">)</tt><tt class="py-op">,</tt><tt class="py-string">'info'</tt><tt class="py-op">)</tt> </tt>
<a name="L1595"></a><tt class="py-lineno">1595</tt>  <tt class="py-line">                    <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-781" class="py-name"><a title="spade.spade_backend.SpadeBackend.shutdown
spade.xmppd.xmppd.Server.shutdown" class="py-name" href="#" onclick="return doclink('link-781', 'shutdown', 'link-449');">shutdown</a></tt><tt class="py-op">(</tt><tt id="link-782" class="py-name"><a title="spade.Agent.STREAM_SYSTEM_SHUTDOWN
spade.MTP.STREAM_SYSTEM_SHUTDOWN
spade.Organization.STREAM_SYSTEM_SHUTDOWN
spade.Organization_new.STREAM_SYSTEM_SHUTDOWN
spade.Unit.STREAM_SYSTEM_SHUTDOWN
spade.Unit_new.STREAM_SYSTEM_SHUTDOWN
spade.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.socialnetwork.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.auth.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.browser.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.commands.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.dispatcher.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.features.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.filetransfer.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.protocol.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmpp.transports.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.config.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.db_fake.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.dialback.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0077.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.jep0078.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.message.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.muc.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.oob.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.pubsub.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.roster.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.router.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.stream.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.webadmin.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.modules.wq.STREAM_SYSTEM_SHUTDOWN
spade.xmppd.xmppd.STREAM_SYSTEM_SHUTDOWN" class="py-name" href="#" onclick="return doclink('link-782', 'STREAM_SYSTEM_SHUTDOWN', 'link-450');">STREAM_SYSTEM_SHUTDOWN</a></tt><tt class="py-op">)</tt> </tt>
<a name="L1596"></a><tt class="py-lineno">1596</tt>  <tt class="py-line">            <tt class="py-keyword">except</tt><tt class="py-op">:</tt> </tt>
<a name="L1597"></a><tt class="py-lineno">1597</tt>  <tt class="py-line">                <tt class="py-keyword">if</tt> <tt class="py-string">'event'</tt> <tt class="py-keyword">in</tt> <tt class="py-name">globals</tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">.</tt><tt id="link-783" class="py-name"><a title="spade.dblite.Index.keys
spade.odict.odict.keys
spade.pyparsing.ParseResults.keys
spade.xmpp.roster.Roster.keys" class="py-name" href="#" onclick="return doclink('link-783', 'keys', 'link-95');">keys</a></tt><tt class="py-op">(</tt><tt class="py-op">)</tt><tt class="py-op">:</tt> <tt id="link-784" class="py-name"><a title="spade.xmpp.client.CommonClient.event" class="py-name" href="#" onclick="return doclink('link-784', 'event', 'link-376');">event</a></tt><tt class="py-op">.</tt><tt class="py-name">abort</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1598"></a><tt class="py-lineno">1598</tt>  <tt class="py-line">                <tt class="py-name">s</tt><tt class="py-op">.</tt><tt id="link-785" class="py-name"><a title="spade.Agent.AbstractAgent.DEBUG
spade.spade_backend.SpadeBackend.DEBUG
spade.xmpp.client.PlugIn.DEBUG
spade.xmpp.simplexml.NodeBuilder.DEBUG
spade.xmpp.transports.HTTPPROXYsocket.DEBUG" class="py-name" href="#" onclick="return doclink('link-785', 'DEBUG', 'link-103');">DEBUG</a></tt><tt class="py-op">(</tt><tt class="py-string">"server"</tt><tt class="py-op">,</tt> <tt class="py-string">'Check your traceback file, please!'</tt><tt class="py-op">,</tt><tt class="py-string">'warn'</tt><tt class="py-op">)</tt> </tt>
<a name="L1599"></a><tt class="py-lineno">1599</tt>  <tt class="py-line">                <tt class="py-name">tbfd</tt> <tt class="py-op">=</tt> <tt class="py-name">file</tt><tt class="py-op">(</tt><tt class="py-string">'xmppd.traceback'</tt><tt class="py-op">,</tt><tt class="py-string">'a'</tt><tt class="py-op">)</tt> </tt>
<a name="L1600"></a><tt class="py-lineno">1600</tt>  <tt class="py-line">                <tt class="py-name">tbfd</tt><tt class="py-op">.</tt><tt class="py-name">write</tt><tt class="py-op">(</tt><tt class="py-name">str</tt><tt class="py-op">(</tt><tt class="py-string">'\nTRACEBACK REPORT FOR XMPPD for %s\n'</tt> <tt class="py-op">+</tt> <tt class="py-string">'='</tt><tt class="py-op">*</tt><tt class="py-number">55</tt> <tt class="py-op">+</tt> <tt class="py-string">'\n'</tt><tt class="py-op">)</tt><tt class="py-op">%</tt><tt class="py-name">time</tt><tt class="py-op">.</tt><tt class="py-name">strftime</tt><tt class="py-op">(</tt><tt class="py-string">'%c'</tt><tt class="py-op">)</tt><tt class="py-op">)</tt> </tt>
<a name="L1601"></a><tt class="py-lineno">1601</tt>  <tt class="py-line">                <tt class="py-comment">#write traceback</tt> </tt>
<a name="L1602"></a><tt class="py-lineno">1602</tt>  <tt class="py-line">                <tt class="py-name">traceback</tt><tt class="py-op">.</tt><tt class="py-name">print_exc</tt><tt class="py-op">(</tt><tt class="py-name">None</tt><tt class="py-op">,</tt><tt class="py-name">tbfd</tt><tt class="py-op">)</tt> </tt>
<a name="L1603"></a><tt class="py-lineno">1603</tt>  <tt class="py-line">                <tt class="py-name">tbfd</tt><tt class="py-op">.</tt><tt class="py-name">close</tt><tt class="py-op">(</tt><tt class="py-op">)</tt> </tt>
<a name="L1604"></a><tt class="py-lineno">1604</tt>  <tt class="py-line">            <tt class="py-keyword">if</tt> <tt class="py-name">cmd_options</tt><tt class="py-op">.</tt><tt class="py-name">disable_fallback</tt> <tt class="py-op">==</tt> <tt class="py-name">True</tt><tt class="py-op">:</tt> <tt id="link-786" class="py-name"><a title="spade.xmppd.modules.stream.GLOBAL_TERMINATE
spade.xmppd.xmppd.GLOBAL_TERMINATE" class="py-name" href="#" onclick="return doclink('link-786', 'GLOBAL_TERMINATE', 'link-2');">GLOBAL_TERMINATE</a></tt> <tt class="py-op">=</tt> <tt class="py-name">True</tt> </tt>
<a name="L1605"></a><tt class="py-lineno">1605</tt>  <tt class="py-line"> </tt><script type="text/javascript">
<!--
expandto(location.href);
// -->
</script>
</pre>
<br />
<!-- ==================== NAVIGATION BAR ==================== -->
<table class="navbar" border="0" width="100%" cellpadding="0"
       bgcolor="#a0c0ff" cellspacing="0">
  <tr valign="middle">
  <!-- Home link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="spade-module.html">Home</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Tree link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="module-tree.html">Trees</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Index link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="identifier-index.html">Indices</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Help link -->
      <th>&nbsp;&nbsp;&nbsp;<a
        href="help.html">Help</a>&nbsp;&nbsp;&nbsp;</th>

  <!-- Project homepage -->
      <th class="navbar" align="right" width="100%">
        <table border="0" cellpadding="0" cellspacing="0">
          <tr><th class="navbar" align="center"
            ><a class="navbar" target="_top" href="http://spade2.googlecode.com">SPADE</a></th>
          </tr></table></th>
  </tr>
</table>
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
  <tr>
    <td align="left" class="footer">
    Generated by Epydoc 3.0.1 on Wed Aug  1 18:45:05 2012
    </td>
    <td align="right" class="footer">
      <a target="mainFrame" href="http://epydoc.sourceforge.net"
        >http://epydoc.sourceforge.net</a>
    </td>
  </tr>
</table>

<script type="text/javascript">
  <!--
  // Private objects are initially displayed (because if
  // javascript is turned off then we want them to be
  // visible); but by default, we want to hide them.  So hide
  // them unless we have a cookie that says to show them.
  checkCookie();
  // -->
</script>
</body>
</html>
